I have a website and would like to notify to our users when they are working on their end. I want to send a prompt message in 15 minutes before the server is went down at 10:00pm.
I have set a timer
DateTime startTime = DateTime.Now;
DateTime myDateTime = DateTime.Now.Date.AddHours(22); // 22 is 10:00pm
I want to have a function to validate for timing.
If 9:45 pm an automate popup message is displayed and it says. Our server is going down in 15 minutes. Please save your work and exit out the website.
Any help would be greatly appreciated.