My code:
If the iOS device time setting is 24-hours, it works. If I 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 <redacted> + 0
0x00180229 -[B4IDateTime NSDateToTicks:] + 124
0x001805a5 -[B4IDateTime DateTimeParse::] + 416
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
Also crashes if I use Timeformat "HH:mm:ss".
Using B4i 2.51, testing on an iPad2, with iOS 9.3.5.
Any ideas?
B4X:
DateTime.TimeFormat = "kk:mm:ss"
DateTime.DateFormat = "dd/MM/yyyy"
Log(DateTime.DateTimeParse("28/08/2016","14:30:00"))
If the iOS device time setting is 24-hours, it works. If I 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 <redacted> + 0
0x00180229 -[B4IDateTime NSDateToTicks:] + 124
0x001805a5 -[B4IDateTime DateTimeParse::] + 416
CoreFoundation <redacted> + 68
CoreFoundation <redacted> + 292
Also crashes if I use Timeformat "HH:mm:ss".
Using B4i 2.51, testing on an iPad2, with iOS 9.3.5.
Any ideas?
Last edited: