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.
我正在创建一个应用程序,它正在从用户指定的时间/日期到时间/日期安排图片。
如何将信息从 DatetimePicker 导出到 Datetime 方法?并从那里开始所有工作?
如果有更好的方法请告诉我,谢谢!
以字符串形式获取日期:
string date= dateTimePicker1.Value.ToShortDateString();
并转换为日期时间:
DateTime dt = Convert.ToDateTime(date);