So I'm trying to write a script to countdown the number of hours and minutes until tomorrow. So far, this is what I have:
The code above correctly displays the hours until tomorrow... but it's not displaying the minutes correctly. It's displaying the total minutes until tomorrow. If there at 4 hours left until tomorrow it's saying "4 Hours and 240 minutes."
response.write(dateDiff("h",now(),date+1)) & " hours and " & dateDiff("m",Time(),date+1) & " Minutes "
I need it to display "4 hours and 0 minutes."
The best way I think this can be done is to take the current time in minutes and subtract that from 60. What you have left is the total minutes until the next hour.
So... can someone help me figure our how to take the current time in minutes and subtract that from 60?