"Shawn Wildermuth (C# MVP)" <[email protected]> a écrit dans le
message de news: (e-mail address removed)...
| > How do I set a DateTime field to null ?
| > Hence set the DateTimePicker to null?
|
| You can't really. You can assign DbNull, but DateTime is a valuetype,
therefore
| no null...
But, if you are using C# 2.0, you can use Nullable<DateTime> which can be
set to null and you can detect that, setting the database to DbNull where
appropriate.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.