B4J Question DateTime.DateFormat

Firpas

Active Member
Licensed User
Longtime User
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
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:
B4X:
DateTime.Format = "dd/MM/yyyy"

should do it. But you'll than have to do it in each app.
 
Upvote 0
Top