procedure TForm1.Button1Click(Sender: TObject); var pDate : AnsiString; begin pDate:='2007/11/01'; if strtodate(pDate) < strtodate(FormatDateTime('yyyy/mm/dd', Now)) then showmessage(datetostr(now())); end;
沒有留言:
張貼留言