rleiman Well-Known Member Licensed User Longtime User Dec 25, 2016 #1 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. Code: DateTime.TimeFormat = "HH:mm" ToastMessageShow(DateTime.TimeParse("01:00"),False) Did I miss something? Thanks.
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. Code: DateTime.TimeFormat = "HH:mm" ToastMessageShow(DateTime.TimeParse("01:00"),False) Did I miss something? Thanks.
stevel05 Expert Licensed User Longtime User Dec 25, 2016 #2 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 Dec 25, 2016 #3 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
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.
klaus Expert Licensed User Longtime User Dec 25, 2016 #4 Sorry, But I don't understand the real problem. What exactly do you want to do? Upvote 0
rleiman Well-Known Member Licensed User Longtime User Dec 25, 2016 #5 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. Code: DateTime.TimeFormat = "HH:mm" ToastMessageShow(DateTime.TimeParse(kvs.Get("SundayRow1StartTime")),False) Upvote 0
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. Code: DateTime.TimeFormat = "HH:mm" ToastMessageShow(DateTime.TimeParse(kvs.Get("SundayRow1StartTime")),False)
klaus Expert Licensed User Longtime User Dec 25, 2016 #6 What is the content of kvs.Get("SundayRow1StartTime")? Add Logs to see what happens! Upvote 0
rleiman Well-Known Member Licensed User Longtime User Dec 25, 2016 #7 Hi Klaus, All works well with this coding. the value in SundayRow1StartTime is 01:00 and I can get the ticks value for that one. I'm using it in my coding now. I do have another question regarding getting the ticks value for the current time on todays date in another thread. If you can check that one it would be very much appreciated. https://www.b4x.com/android/forum/threads/getting-the-ticks-value-for-todays-current-time.74522/ Thanks. Upvote 0
Hi Klaus, All works well with this coding. the value in SundayRow1StartTime is 01:00 and I can get the ticks value for that one. I'm using it in my coding now. I do have another question regarding getting the ticks value for the current time on todays date in another thread. If you can check that one it would be very much appreciated. https://www.b4x.com/android/forum/threads/getting-the-ticks-value-for-todays-current-time.74522/ Thanks.