 |
my notes |
Date and time
I used it in my page. I think i got this script from dynamicdrive.com
<!-- hide me
var now = new Date();
var yr = now.getYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = ((now.getDate()<10) ? " " : "")+
now.getDate();
if(dName==1) Day = "SUNDAY";
if(dName==2) Day = "MONDAY";
if(dName==3) Day = "TUESDAY";
if(dName==4) Day = "WEDNESDAY";
if(dName==5) Day = "THURSDAY";
if(dName==6) Day = "FRIDAY";
if(dName==7) Day = "SATURDAY";
if(mName==1) Month="January";
if(mName==2) Month="February";
if(mName==3) Month="March";
if(mName==4) Month="April";
if(mName==5) Month="May";
if(mName==6) Month="June";
if(mName==7) Month="July";
if(mName==8) Month="August";
if(mName==9) Month="September";
if(mName==10) Month="October";
if(mName==11) Month="November";
if(mName==12) Month="December";
var todaysDate =("<b>"
+ Day
+ "</b>, "
+ Month
+ " "
+ dayNr);
document.open();
document.write(""+todaysDate+"");
// show me -->
|