How can I set a DateTimePicker control to a specific date (yesterday's date) in C# .NET 2.0?
Just need to set the value property in a convenient place (such as InitializeComponent()):
InitializeComponent()
dateTimePicker1.Value = DateTime.Today.AddDays(-1);
1.4m articles
1.4m replys
5 comments
57.0k users