Set DateTimePicker value to be null
问题 I am developing a WinForms UI with two DateTimePicker controls. Initially I want to set the value of the controls to null until a user selects a date. If the user does not select a date, it will pass a value of null to the database. By default it takes the current date. Could you plz suggest something or attach a piece of code which will help me out. I have tried setting the MinDate property but it doesn't work. The code is in C# .Net. Thanks, Manali. 回答1: I think the best solution is to use