C#中使用DateTimePicker控件显示修改日期时间时间:2023-03-09 01:06:39 1、只显示日期 默认就是 2.只显示时间 修改属性 Format 设为Time ShowUpDown设为true 3.同时显示日期时间 Format设为Custom CustomFormat 设为 yyyy-MM-dd HH:mm:ss ShowUpDown设为true