Since DateTime is a valuetype you cannot set it to null.
If you need to set it to null you can on your form have a Not Applicable
checkbox and disable the datetime picker when checked or define a date that
will be treated as null. ie 1/1/1.
Or you could create an object wrapping DateTime which will cater for null.
And/Or you might be able to subclass the datetime picker and add a null
button or some such.
HTH
JB
"Dean L. Howen" <jm*@hotpop.com> wrote in message
news:ei**************@TK2MSFTNGP09.phx.gbl...
Dear friends,
Could you help me to solve the problem:
How can we set/get NULL values of datetime in DatetimePicker ?
I design a form using DateTimePicker to input/output date value, but the
date could be
NULL
Thank you.