Dave, being a new web developer I would like to know how I can code for a numeric value to decrease by 1 every 24 hours based on the local time function.
Specifically, we are trying to create a reminder for our employees of an upcoming DoD audit in the facility. The count down will represent the number of days remaining before it’s conducted. So what I need to do is begin with a date
and start the countdown from there. What is the code that I should use?
Then we want to work with what us Unix types call the “epoch time” which is the number of milliseconds since a fixed point in the past. For convenience, it’s 1 Jan, 1970 on most systems, but if you think about it you’ll realize that it doesn’t matter what date the epoch time starts with, as long as it’s consistent across both values. Anyway, let’s see some code!
I hope that’ll help you create what you need on your site, and good luck with your DoD inspection too!