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

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

posted on 2019-01-04 09:49  newlives  阅读(330)  评论(0编辑  收藏  举报