Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只是找不到如何使 Windows 窗体 DatePicker 具有日期和时间供用户选择。它没有?
我看到的唯一方法是放置两个 Datepickers 一个带有日期,一个带有时间,并结合我需要的 DateTime 对象......这是唯一的方法吗?
WinformsDateTimePicker由于某种原因不可用吗?如果可用,您可以创建一个,为属性选择“自定义”,Format然后在属性中键入yyyy-MM-dd hh:mm:ss或任何您想要的内容CustomFormat。
DateTimePicker
Format
yyyy-MM-dd hh:mm:ss
CustomFormat