tags:

views:

612

answers:

3

how to get current date in java script

+4  A: 

var currentTime = new Date();

Hendrik
but you should have googled it first
Hendrik
+2  A: 

See the documentation for the Date object. It has examples.

David Dorward
+1  A: 

He should have googled it and you should have provided the google query rather than the answer: http://www.google.com/search?q=current+date+javascript

Andrew
He should have googled it, Hendrik should have linked it and you should have used lmgtfy! :P http://lmgtfy.com/?q=current+date+javascript
wds
Haha! Cool. My apologies. I'll use lmgtfy in future.
Andrew