1.获取当前时间
var ddate:Date = new Date();
2、获取前一天时间
var ddate:Date = new Date(); ddate["date"]-=1;
3、Date---->String
starttime.text=ddate.toDateString();