Abdulaziz93 Member Licensed User Longtime User Oct 16, 2013 #1 hi, im trying to schedule a startserviceat with 24hrs or 48hrs or 72hrs like this i'm only know this StartServiceAt("s1", DateTime.Now + 10 * 1000, True) < this is after 10secounds i want to know to make it after 24hrs or 48hrs or 72hrs like this? Thanks <3
hi, im trying to schedule a startserviceat with 24hrs or 48hrs or 72hrs like this i'm only know this StartServiceAt("s1", DateTime.Now + 10 * 1000, True) < this is after 10secounds i want to know to make it after 24hrs or 48hrs or 72hrs like this? Thanks <3
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2013 #2 You can use DateUtils for that: B4X: Dim p As Period p.Days = 1 Dim tomorrow As Long = DateUtils.AddPeriod(DateTime.Now, p) Note that not all days are 24 hours long... Some are 23 or 25 hours. Upvote 0
You can use DateUtils for that: B4X: Dim p As Period p.Days = 1 Dim tomorrow As Long = DateUtils.AddPeriod(DateTime.Now, p) Note that not all days are 24 hours long... Some are 23 or 25 hours.