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.
有没有办法可以将日期选择器值设置为系统日期(通常默认设置日期,即 01/01/0001)
感谢您对此的帮助!
您可以使用此语法
dateTimePicker1.SelectedDate = DateTime.Now.AddDays(5);