As noted above, “karthik reddy” you need to use “CustomFormat”, however, to write a null value to the SQL database (for example), your code should check the DateTimePicker when it adds or updates the record, so you need at least two code snippets. Where a) 'dtp_X' is a DateTimePicker control, b) "_NewRecord" is a custom object that is sent back to the SQL server, c) "TheDateProperty" is a specific date field or property of a custom object
glenn garson
source share