W
wanglong5
Unregistered / Unconfirmed
GUEST, unregistred user!
我在vista做了日期转换,怎么会出现错误呢?以前在xp下好使,我也明白是日期分隔符/的问题,怎么让我的程序在xp下和vista下都好使呢??例如:procedure TForm1.Button1Click(Sender: TObject);begin ShortDateFormat := 'yyyy-mm-dd'; edit1.text := datetimetostr(now); strtodatetime(edit1.text)end;错误提示为:'2009-11-23 12:20:07' is not a valid date and time.