thank you ken, I have try the link that you give me....from this i search for
other code and i find this link
http://www.dotnet247.com/247referenc...ck_313513.aspx
this one it's very cool
thank you
"Ken Tucker [MVP]" wrote:
[color=blue]
> Hi,
>
>
http://www.windowsforms.net/Forums/S...=41&PostID=948
>
> Ken
> ----------------
> "Clamara" <Clamara@discussions.microsoft.com> wrote in message
> news:C6D1994E-E021-4FC8-925B-F3816A26319F@microsoft.com...
> When adding a new record from my form, I pre-set my DateTimePicker's value
> to
> System.DateTime.Today
> Since the "Today" value is used most of the time, the user doesn't need to
> select a date from the DateTimePicker, since the default is shown. My
> problem
> is, if the user does not choose a value from the DateTimePicker (because
> using the default is good enough), then during database update, the date
> value is not saved to the database; while if user choose another value other
> then the default, the value can be saved to the database successfully. Is
> there a way to ensure the default value can be saved to the database?
>
>
>[/color]