F Firpas Active Member Licensed User Longtime User Feb 8, 2016 #1 I'm working with a Windows 7 machine from Spain. My format datetime (short format) is "dd/MM/yyyy", but ... DateTime.DateFormat return "MM/dd/yyyy" Is there any way to get the real dateformat???
I'm working with a Windows 7 machine from Spain. My format datetime (short format) is "dd/MM/yyyy", but ... DateTime.DateFormat return "MM/dd/yyyy" Is there any way to get the real dateformat???
stevel05 Expert Licensed User Longtime User Feb 8, 2016 #2 I think the default format comes from your settings in the device itself, so you should be able to change them for the whole device in the settings tab of the device. Failing that you can set it with the same Method so: Code: Copy DateTime.Format = "dd/MM/yyyy" should do it. But you'll than have to do it in each app. Upvote 0
I think the default format comes from your settings in the device itself, so you should be able to change them for the whole device in the settings tab of the device. Failing that you can set it with the same Method so: Code: Copy DateTime.Format = "dd/MM/yyyy" should do it. But you'll than have to do it in each app.
Erel B4X founder Staff member Licensed User Longtime User Feb 9, 2016 #3 The default date format is always: MM/dd/yyyy You can get the device default format which is based on the device locale with: DateTime.DeviceDefaultDateFormat. Upvote 0
The default date format is always: MM/dd/yyyy You can get the device default format which is based on the device locale with: DateTime.DeviceDefaultDateFormat.
F Firpas Active Member Licensed User Longtime User Feb 9, 2016 #4 Ok Erel. Thank you very much Upvote 0