Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to read "Regional and language option"? 1

Status
Not open for further replies.

tg2003

IS-IT--Management
Feb 6, 2003
270
IL
Hello,

I'd like to let my app run only if the Regional settings is in English format (US/UK is OK). How can I read it?
I'm using VB.NET 2008

See the link:
Thanks!
 
see "System.Globalization." class

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Thanks.

On the other hand, I may prefer to reformat the date format.
Currently I'm developing an app which users from whole world may use. I don't know their regional settings in advance.

What is considered the best for the scenario in which I don't know the user date format in advance, and I just want to reformat it to English-US format (and then do some validations checks on it)?

Currently I use
Code:
Format(System.DateTime.FromOADate(today.ToOADate), "MM/dd/yyyy")
but I'm not sure it's the best consideration.

Thanks again.
 
I am not sure if it is the best way. May be some one else here can tell you.
This can be smaller
Code:
Format(Date.Today, "MM/dd/yyyy")

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top