The script.js file now allows me to select a date and time in the past. The previous code only allowed from the current time forward.