samedi 3 septembre 2016

DateUtils Calculations

I need to calculate the time (period) a student spends reading an eBook.
In the Main Module I have a Process_Global variable:

Code:
  Dim MyBookStart As Long  
When the eBook loads, I save to MyBookStart variable:
Code:
  DateTime.DateFormat = "dd-MM-yyyy HH:MM:ss"
Main.MyBookStart =
DateTime.Date(DateTime.Now)
and receive this Error:
Code:
  java.lang.NumberFormatException: Invalid double: "03-09-2016 19:09:57"  


from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/2bKEa2a
via IFTTT

Aucun commentaire:

Enregistrer un commentaire