Link to home
Start Free TrialLog in
Avatar of Anthony Matovu
Anthony MatovuFlag for Uganda

asked on

reading the date format

Dear Experts,

I read the computer date format in using the code below. but i have found out that sometimes when the computer date display is changed the results from operation based on may variable "systemculture" are not consistent.

For example, if format is american but display is set to "dd/mm/yyyy". date add for example may increase the month instead of the day.

I am using vb.net
Help


            Select Case LCase(System.Globalization.CultureInfo.CurrentCulture.Name)
                Case "en-us"
                    systemculture = 1
                Case Else
                    systemculture = 2
            End Select
ASKER CERTIFIED SOLUTION
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial