Answers for "check time javascript"

0

check time javascript

var objDate = new Date();
var hours = objDate.getHours();
if(hours >= 12 && hours <= 21){
    document.write('We Are Closed');
}
else{
    document.write('We are Open');
}
Posted by: Guest on October-26-2021

Code answers related to "check time javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language