用2个DATETIMEPICKER分别输入时间和日期,再合并成一个DATETIME类型
DtpDate为日期的,DtpTime为时间的
StrToDateTime(FormatDateTime('yyyy-MM-dd',
DtpDate.Date) + ' ' + TimeToStr(DtpTime.Time));
DtpDate为日期的,DtpTime为时间的
StrToDateTime(FormatDateTime('yyyy-MM-dd',
DtpDate.Date) + ' ' + TimeToStr(DtpTime.Time));