flex currentdate
one month
public static const millisecondsPerMinute:int = 1000 * 60;
public static const millisecondsPerHour:int = 1000 * 60 * 60;
public static const millisecondsPerDay:int = 1000 * 60 * 60 * 24;
var currentDate:Date = new Date();
var dueDate:Date = new Date(currentDate.getTime() - (30 * millisecondsPerDay));
obj.begindate = dueDate.fullYear+'-'+(dueDate.month+1)+'-'+dueDate.date;
obj.enddate = currentDate.fullYear+'-'+(currentDate.month+1)+'-'+currentDate.date;

浙公网安备 33010602011771号