stain design
11-02-2006, 10:43 AM
Hello,
For some reason The date is coming out to october!!!! Its reading 10/2/06
Can someone please help me figure out why this is? Here is the action script.
onClipEvent (load) {
days = new Array('Sunday','Monday','Tuesday','Wednesday','thursday','Friday','Saturday','Sunday');
months = new Array('January','February','march','April','May','June','July','August','September','October','Novem ber','December');
timedate = new Date();
}
onClipEvent (enterFrame) {
hour = timedate.getHours();
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = timedate.getMonth();
monthname = months[month];
year = timedate.getFullYear();
if (Length(minutes)==1) {
minutes = "0" + minutes;
}
if (Length(seconds)==1) {
seconds = "0" + seconds;
}
currenttime = hour + ":" + minutes + ":" + seconds;
currentdate = todaydate + "/" + month + "/" + year;
fulldate = dayname + " " + todaydate + " " + monthname + " " + year;
delete timedate;
timedate = new Date();
}
For some reason The date is coming out to october!!!! Its reading 10/2/06
Can someone please help me figure out why this is? Here is the action script.
onClipEvent (load) {
days = new Array('Sunday','Monday','Tuesday','Wednesday','thursday','Friday','Saturday','Sunday');
months = new Array('January','February','march','April','May','June','July','August','September','October','Novem ber','December');
timedate = new Date();
}
onClipEvent (enterFrame) {
hour = timedate.getHours();
minutes = timedate.getMinutes();
seconds = timedate.getSeconds();
todaydate = timedate.getDate();
day = timedate.getDay();
dayname = days[day];
month = timedate.getMonth();
monthname = months[month];
year = timedate.getFullYear();
if (Length(minutes)==1) {
minutes = "0" + minutes;
}
if (Length(seconds)==1) {
seconds = "0" + seconds;
}
currenttime = hour + ":" + minutes + ":" + seconds;
currentdate = todaydate + "/" + month + "/" + year;
fulldate = dayname + " " + todaydate + " " + monthname + " " + year;
delete timedate;
timedate = new Date();
}