dimanche 28 août 2016

datetimeparse weirdness

My code:

[ CODE ]
DateTime.TimeFormat = "kk:mm:ss"
DateTime.DateFormat = "dd/MM/yyyy"
Log(DateTime.DateTimeParse("28/08/2016","14:30:00"))
[ /CODE ]

Also crashes if I use Timeformat "HH:mm:ss".

If the iOS device time setting is 24-hours, it works. If it set the device to am/pm, the program crashes:

Error occurred on line: 3394 (Main)
Error parsing date string.
Stack Trace: (
CoreFoundation <redacted> + 150
libobjc.A.dylib objc_exception_throw + 38
CoreFoundation...

datetimeparse weirdness

from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2brD0H4
via IFTTT

Aucun commentaire:

Enregistrer un commentaire