vbmundo Well-Known Member Licensed User Sep 17, 2016 #1 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
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 Sep 17, 2016 #2 vbmundo said: Whats Wrong ? Click to expand... DateTimeParse expect a string for the date and time to parse... Not a long Upvote 0
vbmundo said: Whats Wrong ? Click to expand... DateTimeParse expect a string for the date and time to parse... Not a long
vbmundo Well-Known Member Licensed User Sep 17, 2016 #4 DonManfred said: DateTimeParse expect a string for the date and time to parse... Not a long Click to expand... 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
DonManfred said: DateTimeParse expect a string for the date and time to parse... Not a long Click to expand... 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
DonManfred Expert Licensed User Longtime User Sep 17, 2016 #5 - Set the correct dateformat and timeformat - Split the string to datepart and timepart. - parse the date and time to longs - compare the longs Upvote 0
- Set the correct dateformat and timeformat - Split the string to datepart and timepart. - parse the date and time to longs - compare the longs
I inakigarm Well-Known Member Licensed User Longtime User Sep 17, 2016 #6 Dateutils --> PeriodBetween Upvote 0
vbmundo Well-Known Member Licensed User Sep 17, 2016 #7 DonManfred said: - Set the correct dateformat and timeformat - Split the string to datepart and timepart. - parse the date and time to longs - compare the longs Click to expand... Thanks Machine !!! Upvote 0
DonManfred said: - Set the correct dateformat and timeformat - Split the string to datepart and timepart. - parse the date and time to longs - compare the longs Click to expand... Thanks Machine !!!
vbmundo Well-Known Member Licensed User Sep 17, 2016 #8 inakigarm said: Dateutils --> PeriodBetween Click to expand... Thanks Inakigarm ! Upvote 0