I have a weird problem. I was asked to modify a console application that is using the windows scheduler, and runs every 10min around the clock. I can't change it to a service because the change needs to be made quickly, but I need to be able to do a preday check at 11:55 midnight, 5:50 AM, and 5:50 PM.
Its very difficult to keep track of the time because the program launches every 10min. Is there a way I can check to see if I'm within 5-10min of the preday check dates using c#? I was thinking I could then save the last time the preday check was last ran into the database, then pull the lastrun date later when the program kicks off again, to see if it already had ran for the day. Not sure which date/time functions I need to use.
Any ideas would be appreciated.