B4J Question Where i wrong ?

moore_it

Well-Known Member
Licensed User
Longtime User
Hi all,

i use this format for time :

B4X:
datetime.dateformat = "HHmmss"

to write in database table
When i read the info from db table i use this format for time:

B4X:
datetime.dateformat = "HHmmss"
datetime.timeparse("datefield in format HHmmss")

if hour is smaller than 10 the program crash where i wrong ?
 

Star-Dust

Expert
Licensed User
Longtime User
Do I always sign the hours with 2 digits? (type 03)
 
Upvote 0

Jmu5667

Well-Known Member
Licensed User
Longtime User
how have you define the datefield in your database? Your problem is mostliky that hours less then 10 may loose the leading zero.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…