Android Question Getting "ticks" value for 01:00

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

I tried to locate examples of getting the ticks value of a given time string but could not find any. Here's my attempt at getting the ticks value of 01:00.

B4X:
DateTime.TimeFormat = "HH:mm"
ToastMessageShow(DateTime.TimeParse("01:00"),False)

Did I miss something?

Thanks.
 

stevel05

Expert
Licensed User
Longtime User
What is stored in your kvs for Key "01:00" ? (I assume kvs refers to a keyvaluestore)
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Steve,

Thanks for the quick reply. ;)

It was 01:00. It was crashing my app so I tried to reboot the device and it work. Strange isn't it?

Again thanks so much.
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Klaus,

I wanted it to return the ticks value. Listed below is the actual coding I used. It crashed the app. When I restarted it, the crashing stopped. I also changed the KVS key ID just to make the coding simple. The final coding will use the ticks value in an If statement.

B4X:
DateTime.TimeFormat = "HH:mm"
   
ToastMessageShow(DateTime.TimeParse(kvs.Get("SundayRow1StartTime")),False)
 
Upvote 0

rleiman

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top