Hi Carl,
My reply in the line below:
--------------------
| Content-Class: urn:content-classes:message
| From: "Carl" <
[email protected]>
| Sender: "Carl" <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
| Subject: RE: DateTime question
| Date: Mon, 8 Sep 2003 11:43:52 -0700
| Lines: 23
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcN2OSZFy+I9EqXIS+uL4nwIYM3EEw==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:183255
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| Do you mean the debugger, only display the date without
| the time because of is internal display format and in
| fact it does have the time but it is only not display??
Yes, that's what I means, because this datetime object that
does not have time can display time part.
|
| Following the reading of the link you send me, which
| format should be use to be the most standard in Canada
| and compatible with SQL server datetime field type?
I think you should use en-CA with the CultureInfo class, for
more information you can visit:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemGlobalizationCultureInfoClassTopic.asp
|
| Also I read some where that SQL server will accept the
| datetime string directly in a datetime field type, is
| that true ?
Yes, I have writen a sample code to insert the datetime object
to the sqlserver, it works well. It seems of that the sqlserver will
receive the datetime object and display it as it displayed in textbox
format.
|
| However, I still unable from the textbox field (datetime
| string) to add record in SQL, I always receive one error
| related to field type. I will do more tests tonight on
| this, and will try to see if it is not another field
| causing this error. I will post back here tomorrow.
|
| Thanks in advance.
|
| Carl,
Hope these help you
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.