Re: Inserting regional settings specific data into sql server
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Thu, 9 Feb 2006 16:11:44 +0100
If somebody is using a format setting that is not equal to his ownThis as well as the date and time comes in a textfile or html file as string
computer, than you can use probably the best in advance the dateTime.parse
and/or dateTime.parseExact first in which you can tell what is the culture
of that datetime string.
in a home made format as in past where made (this cannot in another way in
a file except an XML file)
ddMMyyyy or ddMMyy or ddMMy or whatever.
You can than use the DateTime.ParseExact with Iformatprovider and the right
paterns
ParseExact overloaded version (string, string etc)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatetimeclassparseexacttopic3.asp
DateTimeFormatInfo
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemglobalizationdatetimeformatinfoclasstopic.aspMaybe is that what you are looking for and are you receiving the date timesas documents.Cor
.
- Follow-Ups:
- Re: Inserting regional settings specific data into sql server
- From: Cor Ligthert [MVP]
- Re: Inserting regional settings specific data into sql server
- References:
- Re: Inserting regional settings specific data into sql server
- From: Cor Ligthert [MVP]
- Re: Inserting regional settings specific data into sql server
- From: Cor Ligthert [MVP]
- Re: Inserting regional settings specific data into sql server
- From: Niketa Mahana
- Re: Inserting regional settings specific data into sql server
- From: Cor Ligthert [MVP]
- Re: Inserting regional settings specific data into sql server
- Prev by Date: Re: Compare 2 DataTables to update RowState
- Next by Date: Re: Inserting regional settings specific data into sql server
- Previous by thread: Re: Inserting regional settings specific data into sql server
- Next by thread: Re: Inserting regional settings specific data into sql server
- Index(es):
Relevant Pages
|