I\'m trying to write a statement that says \"if time is this and less than that then\". I can use get hours and get min. However, I\'m having problems combining a time suc
Try this:
var now = new Date(); var hour = now.getHours(); var mintues = now.getMinutes(); if( (hour*60 + mintues) > 570 && hour <= 11 ) { document.write(now); }