在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
TDateTimePicker使用时候,如果想获取到修改后的值,必须注Kind和time属性必须对应! 1,时间设置: treatmentTime1DTPicker.Kind := dtkTime; treatmentTime1DTPicker.Format := 'HH:mm'; treatmentTime1DTPicker.Time := now; 2,日期设置: treatmentTime2DTPicker.Kind := dtkDate; treatmentTime2DTPicker.Format := 'yyyy-mm-dd'; treatmentTime2DTPicker.Date := now; 得到上面两个控件的日期和时间
FormatDateTime('yyyy-mm-dd hh:mm:ss', Trunc(treatmentTime2DTPicker.Date) +Frac(treatmentTime1DTPicker.time));
参考: https://www.cnblogs.com/hellochenchen/p/5438497.html https://ifso.iteye.com/blog/1752420 https://www.cnblogs.com/findumars/p/3821293.html
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论