Re: changing the date format in vb.net
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Fri, 16 Jun 2006 12:25:07 +0200
"andreas" <andreas@xxxxxxxxxx> schrieb:
When can change in Windows - Control panel the format of the date and it is
important for vb.net when reading a date in plain tekst in a textfile
When the windows format is f.e. yyyy/mm/dd and the textfile gives in plain
tekst 31/12/2005 then I get a error.
When I change the windows format in dd/mm/yyyy than the date is reading.
Is it possible and how can I :
Dedect in VB.net what the setting is in O.S.
You don't need to worry about the OS settings. Just set the application's 'CurrentCulture' to the culture you want to use to persist the data and then reset it to its previous value.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
.
- Follow-Ups:
- Re: changing the date format in vb.net
- From: andreas
- Re: changing the date format in vb.net
- References:
- changing the date format in vb.net
- From: andreas
- Re: changing the date format in vb.net
- From: Herfried K. Wagner [MVP]
- Re: changing the date format in vb.net
- From: andreas
- changing the date format in vb.net
- Prev by Date: Re: VB and VB.NET
- Next by Date: RE: Refer to TableAdapter data in code?
- Previous by thread: Re: changing the date format in vb.net
- Next by thread: Re: changing the date format in vb.net
- Index(es):
Relevant Pages
|