Android Question Unparseable Date

vbmundo

Well-Known Member
Licensed User
Hi,

I have this line

B4X:
 AlarmaenTicks=DateTime.DateTimeParse(DateTime.Add(DateTime.Now,0,0,Item-DiaActual),DateTime.TimeParse(NumberFormat(ItemAlarma.get(8),2,0) & ":" & NumberFormat(ItemAlarma.get(9),2,0) & ":00"))

But I receive Unparseable Date

(Exception) java.lang.Exception :
java.text.ParseException :
Unparseable date: "1474213214539"
(at offset 13)

Whats Wrong ?

Regards
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

vbmundo

Well-Known Member
Licensed User
DateTimeParse expect a string for the date and time to parse... Not a long
How Can I obtain in Ticks the diference between

For example

"2016-09-16 08:00:00" and "2016-09-17 15:25:00" ?

I need to sort a list with Alarms Items... and put the sooner at top and farest at bottom

Thanks
 
Upvote 0
Top