今天的開始日期是午夜
function today(date:Date = null):Date {
if (date == null)
date = new Date();
return new Date(date.fullYear, date.month, date.date, 0, 0, 0, 0);
}
function today(date:Date = null):Date {
if (date == null)
date = new Date();
return new Date(date.fullYear, date.month, date.date, 0, 0, 0, 0);
}