Hi all,
I use StartServiceAt("",DateTime.Now + 1 * DateTime.TicksPerHour,True) to schedule my service to run every hour. My question is, after the service started, I want to know how much time until the next run. I.e first run at 7.00 so next run is scheduled at 8.00. Now is 7.45 which means 15mins before the next run. How can I get this "15mins" value?
I use StartServiceAt("",DateTime.Now + 1 * DateTime.TicksPerHour,True) to schedule my service to run every hour. My question is, after the service started, I want to know how much time until the next run. I.e first run at 7.00 so next run is scheduled at 8.00. Now is 7.45 which means 15mins before the next run. How can I get this "15mins" value?