PageRenderTime 443ms CodeModel.GetById 260ms app.highlight 3ms RepoModel.GetById 178ms app.codeStats 0ms

/b2evolution/firebug/rsc/js/date.js

http://laibcomsthemes.googlecode.com/
JavaScript | 12 lines | 12 code | 0 blank | 0 comment | 2 complexity | 791c1915402f76a1249999af2fa65c95 MD5 | raw file
 1var mydate=new Date()
 2var year=mydate.getYear()
 3if (year < 1000)
 4year+=1900
 5var day=mydate.getDay()
 6var month=mydate.getMonth()
 7var daym=mydate.getDate()
 8if (daym<10)
 9daym="0"+daym
10var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
11var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
12document.write(""+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"")