用API读。 var systime: systemtime; begin getlocaltime(systime); end;你试试!
The following example assigns 'The meeting is on Wednesday, February 15, 1995 at 10:30 AM' to the string variable S. S := FormatDateTime('"The meeting is on " dddd, mmmm d, yyyy, " at " hh:mm AM/PM', StrToDateTime('2/15/95 10:30am'));
你可以用一DateTimePicker1来测试:
不要修改它的日期(看上去可能是'2001-09-01'),此时取出该值存到数据库里
它的日期就为'1899-......'
var
systime: systemtime;
begin
getlocaltime(systime);
end;你试试!
取到1899-12-30 没啥好奇怪的
用date now不就得了