Posted By

ryarwood on 07/08/10


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Current Date

 / Published in: JavaScript

Displays the current date.

  1. function currentdate() {
  2. var d=new Date()
  3. var year=d.getFullYear()
  4. document.write(year)
  5. }

Report this snippet  

You need to login to post a comment.