J joofville Member Licensed User Longtime User Feb 21, 2013 #1 Hey guys. How do I get a certain time during the day. I am writing a service and am using the StartServiceAt function, I want my service to start every day at 23:58:00 Any help? Cheers
Hey guys. How do I get a certain time during the day. I am writing a service and am using the StartServiceAt function, I want my service to start every day at 23:58:00 Any help? Cheers
thedesolatesoul Expert Licensed User Longtime User Feb 21, 2013 #2 See here: Basic4android - Core I think you are looking for: Code: Copy Dim t as Long t = DateTime.TimeParse("23:58:00") StartServiceAt(t) Upvote 0
See here: Basic4android - Core I think you are looking for: Code: Copy Dim t as Long t = DateTime.TimeParse("23:58:00") StartServiceAt(t)
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2013 #3 Also check DateUtils: DateUtils - Simplifies Date and Time Calcuations You can use DateUtils.SetDateAndTime Upvote 0
Also check DateUtils: DateUtils - Simplifies Date and Time Calcuations You can use DateUtils.SetDateAndTime