Re: System.Windows.Forms.DateTimePicker

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The DateTime data type is a value type and is a structure. That means that
its' value cannot be null. It is possible that you are receiving some forms
that have been sent by bots (automated processes, such as Spam-bots), and
that these bots are not supplying a DateTime. Since the value of a DateTime
is in Ticks past 1/1/0001, a null value would be equivalent to 0 ticks.

--
HTH,

Kevin Spencer
Microsoft MVP
Bit Player
http://unclechutney.blogspot.com

Where there's a Will, there's a William.

"Memphis" <Memphis@xxxxxxxxxxxxxxxxx> wrote in message
news:0527EC98-D9B9-467E-BD75-E4DCFEBF3AB4@xxxxxxxxxxxxxxxx
Windows XP (SP2)
Visual Studio 2005 - (VB.NET)

The DateTimePicker is always initialized to Today + 1 Day. For some
strange
reason we have seen some incidents where the Saved date is 1/1/0001
We cannot reproduce as this is totally random.

Are there any bugs/issues with this control?



.



Relevant Pages

  • Re: Searching on DATETIME Fields
    ... The datetime datatype does not store the ... The format you see is created by the ... >>> The field I am querying is of DATETIME data type, ...
    (microsoft.public.sqlserver.server)
  • Re: convert datetime to sortable format
    ... Does the web service take a DateTime data type or a string? ... Big thicks are made up of lots of little thins. ... but it appends time twice in date variable. ... I need to pass this variable (as DateTime type) to Java webservice. ...
    (microsoft.public.dotnet.framework)
  • Re: sqlParameter DateTime problem - seconds ignored
    ... I use DateTime data type everywhere. ... > normal culture formats or even better the ISO standard. ... > There are more samples for this on our website. ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Selecting record with specific datetime
    ... If the column is a datetime data type, ... > AMB ... the query returns zero results. ...
    (microsoft.public.sqlserver.programming)