/*获取初始化时间*/
dateInit(): void {
var all = this._commonService.getNowMonthDate2Start()
var now = this._commonService.date2Time(all.end) // 当前时间戳
var st2 = Number(now) - (86400 * 15) // 减少15天
var start = this._commonService.time2Date(st2, false, '-')
$('#startDate').val(start)
var ed2 = Number(now) + (86400 * 15) //加15天
var end = this._commonService.time2Date(ed2, false, '-')
$('#endDate').val(end)
}
网友评论