Anthony Matovu
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 .CultureIn fo.Current Culture.Na me)
Case "en-us"
systemculture = 1
Case Else
systemculture = 2
End Select
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
Case "en-us"
systemculture = 1
Case Else
systemculture = 2
End Select
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.