var m = new Date().getMonth() //当前月份
var q = parseInt(m / 3) //当前季度
var qs = new Date(y, (q - 1) * 3, 1) //上一季度的开始日期
var qe = new Date(y, q * 3, 0) //上一季度的结束日期
var time = new Date()var t = time.getFullYear()+ "年"+ month + "月" + time.getDate()+ "日 "+"星期"+day+" "+time.getHours()+ ":"+ time.getMinutes() + ":" +time.getSeconds()document.write(t)