| RE: [aus-dotnet] #12:00:00 AM# ..is date |
- From: Tim Wilson
- Subject: RE: [aus-dotnet] #12:00:00 AM# ..is date
- Date: Thu, 02 Dec 2004 13:06:51 +1100
- Prev by Date: RE: [aus-dotnet] Whidbey Beta2 and the "Go Live"
- Next by Date: RE: [aus-dotnet] #12:00:00 AM# ..is date
- Previous by thread: Re: [aus-dotnet] Dotnet exchnage rate service
- Next by thread: RE: [aus-dotnet] #12:00:00 AM# ..is date
- Index(es):
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-----Original Message-----
From: anthony [mailto:list@xxxxxxxxxxxxxxx]
Sent: Thursday, 18 November 2004 10:57 PM
To: dotnet@xxxxxxxxxxx
Subject: RE: [aus-dotnet] #12:00:00 AM# ..is datethanks
From: dotnet-owner@xxxxxxxxxxx [mailto:dotnet-owner@xxxxxxxxxxx] On Behalf Of Andrew de la Harpe
Sent: Thursday, 18 November 2004 10:02 PM
To: dotnet@xxxxxxxxxxx
Subject: RE: [aus-dotnet] #12:00:00 AM# ..is dateA date always has a value. Date dt = new Date() = 00:00:00.0000000, January 1, 0001 Your problem is that this is probably less than the allowed value for your datatype. eg SQL Server datetime type has a min value of January 1, 1753 . Usually it's best to insert a null for unassigned dates. ie. if ( dt > DateTime.MinValue) set param here... Andrew -----Original Message-----
From: dotnet-owner@xxxxxxxxxxx [mailto:dotnet-owner@xxxxxxxxxxx]On Behalf Of anthony
Sent: Thursday, November 18, 2004 9:55 PM
To: dotnet@xxxxxxxxxxx
Subject: [aus-dotnet] #12:00:00 AM# ..is dateI have property defined as datetime...when i read the property wihout any assignment the value is #12:00:00 AM# if i use isdate..it returns TRUE but this will not submit to SQL...How do i detect a valid datetime for SQL? Anthony
(Click here for more information on the aus-dotnet mailling list)
