本文整理自网络,侵删。
将DateTimePicker的Format属性中加入日期格式设成 'yyyy-MM-dd HH:mm',注意大小写 ,
将kind设置为dtkTime即可,可以在每次Form onShow时将DateTimePicker1.DateTime := Now
相关阅读 >>
Delphi searchrec.attr and fadirectory
Delphi xe, xe10, 创建 activeform 和 activex 工程的方法
Delphi xe 新功能试用:多种皮肤样式静、动态设置方法
更多相关阅读请进入《Delphi》频道 >>