Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javascript - Get the time out of my browser [duplicate]

Possible Duplicate:
How to get current date in JavaScript

How can i Get the time out of my browser whit using javascript? This do I need to make a comparison in my script.

like image 961
Raymond van Os Avatar asked Sep 13 '25 10:09

Raymond van Os


1 Answers

currentTime = new Date();
time = currentTime.getTime();
hours = currentTime.getHours();

etc

like image 140
Mudassir Ali Avatar answered Sep 14 '25 22:09

Mudassir Ali