After upgrading to B4J Ver 8.9 My program crashes with java.text.ParseException: Unparseable date: "22-FEB-2021". Yet when I run the same code under Ver 8.5 it is fine.
Interestingly when I change the month text to ie February it works. Unfortunately my incoming dates are like 22-Feb-2021 etc.
Is this a bug or am I missing something? Thanks. Hope someone can shed some light. Below the code I used for testing.
Interestingly when I change the month text to ie February it works. Unfortunately my incoming dates are like 22-Feb-2021 etc.
Is this a bug or am I missing something? Thanks. Hope someone can shed some light. Below the code I used for testing.
B4X:
Private Sub Button1_Click
DateTime.DateFormat = "dd-MMM-yyyy"
Log(DateTime.DateParse("22-FEB-2021"))
'Log result with B4J 8.5 = 1613912400000
'Run with B4J 8.9 throws an Error
'java.text.ParseException: Unparseable date: "22-FEB-2021"
End Sub