Android Question [SOLVED] Date to ticks

makis_best

Well-Known Member
Licensed User
Longtime User
Hi.

I try to parse a date to a DatePicker.
The date format is yyyy-MM-dd.
I try using the code
B4X:
DateTime.DateFormat = "yyyy/MM/dd"
        AnotherDatePicker1.Date = DateTime.DateParse(Curs1.GetString("InsDate"))
But I always get the error java.text.ParseException: Unparseable date: "2019-07-22" (at offset 4)

Why?
 
Top