用2个DATETIMEPICKER分别输入时间和日期,再合并成一个DATETIME类型

DtpDate为日期的,DtpTime为时间的
StrToDateTime(FormatDateTime('yyyy-MM-dd', DtpDate.Date) + ' ' + TimeToStr(DtpTime.Time));

原文地址:https://www.cnblogs.com/bwdblogs/p/10218171.html