Greetings, all.
I am based in FL, USA. Today is August 7, 2014. The code below will generate 08/07/2014 in the log.
In Europe and most Latin American countries, 08/07/2014 would be interpreted as July 8, 2014 (dd/mm/yyyy). In essence, in the US, the results of the code are in mm/dd/yyyy format.
Questions:
1. Does B4A automatically detect country of the device and format accordingly?
or if not,
What do I have to do for dates stored in ticks to be properly formatted based on the device country?
2. How do I test location - make my device look like it is not in the USA?
3. Would DateParse also automatically detect the country format?
Any and all help will be welcomed. Thank you in advance for your help.
Best regards.
Sandy
I am based in FL, USA. Today is August 7, 2014. The code below will generate 08/07/2014 in the log.
B4X:
Dim dt1 As Double
dt1=DateTime.Now
Log (DateTime.Date(dt1))
In Europe and most Latin American countries, 08/07/2014 would be interpreted as July 8, 2014 (dd/mm/yyyy). In essence, in the US, the results of the code are in mm/dd/yyyy format.
Questions:
1. Does B4A automatically detect country of the device and format accordingly?
or if not,
What do I have to do for dates stored in ticks to be properly formatted based on the device country?
2. How do I test location - make my device look like it is not in the USA?
3. Would DateParse also automatically detect the country format?
Any and all help will be welcomed. Thank you in advance for your help.
Best regards.
Sandy