JohnnyHotrocks
Technical User
I need to be able to show the days date like Monday 29 October 2001 and also show the next days date. Hope someone can help.
Cheers
Cheers
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dayarray = new Array("Sunday", "Monday", "Tuesday", "Wednesday","Thursday",
"Friday","Saturday");
Montharray = new Array("January","February","March","April","May","June","July",
"August","September","October","November","December");
Hourarray = new Array("12","1","2","3","4","5","6","7","8","9","10","11","12",
"1","2","3","4","5","6","7","8","9","10","11");
a = new Date();
b = a.getFullYear();
c = a.getMonth();
d = a.getDate();
e = a.getDay();
f = a.getHours();
g = a.getMinutes();
if (g<10) {
g = "0"+g;
}
h = a.getSeconds();
if (h<10) {
h = "0"+h;
}
monthName = Montharray[c];
dayName = Dayarray[e];
hourValue = Hourarray[f];
show = dayName+" "+monthName+" "+d+","+" "+b+" "+hourValue+":"+g+" "+h;