Re: changing the date format in vb.net

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"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/>

.



Relevant Pages

  • Re: changing the date format in vb.net
    ... important for vb.net when reading a date in plain tekst in a textfile ... When I change the windows format in dd/mm/yyyy than the date is reading. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Textfile
    ... Is there a chance to change only one column in a textfile without reading ... then each member of the column would sit on a disk block boundary ...
    (comp.soft-sys.matlab)
  • Re: Textfile
    ... Is there a chance to change only one column in a textfile without reading ... then each member of the column would sit on a disk block boundary ...
    (comp.soft-sys.matlab)
  • Re: Updating the screen
    ... >I want to see the progress when reading the contents of a textfile. ... >I thougth this could be done by displaying the read line in a ...
    (comp.lang.pascal.delphi.misc)