J jeoky Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-20 #1 已知具体时间,如2003-1-4,求一个星期前的日期,如何求?
薄 薄荷 Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-20 #3 Date-7就可以了阿 var Date: TDate; begin ShowMessage(DateToStr(Date-7)); end;
Y ysai Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-20 #4 uses DateUtils; dt:=IncWeek(Now,-1);
C corba_cn Unregistered / Unconfirmed GUEST, unregistred user! 2003-01-24 #6 Date dd=new Date(2003-1900,1-1,4); Date kk=new Date(dd.getYear(),dd.getMonth(),dd.getDay()-7); out.print(kk.toLocaleString()+"<br>"); 其中KK就是你想要的日期
Date dd=new Date(2003-1900,1-1,4); Date kk=new Date(dd.getYear(),dd.getMonth(),dd.getDay()-7); out.print(kk.toLocaleString()+"<br>"); 其中KK就是你想要的日期