current time and date, zero before single digits / Actionscript 3.0
hello,
i have a problem with a clock that does current date and time. i am newbie and tried all other forums relating to this problem. i tried every possible solution i could find, nothing seemed to work.
can anyone please complete my actionscript 3.0 code?
Thank you a lot in advance,
Kind regards,
Bregt
var today_date:Date = new Date();
var thisday:uint = today_date.getDate();
var thismonth:uint = today_date.getMonth();
var today_time;
var currentTime:Date = new Date();
var minutes = currentTime.getMinutes();
var seconds = currentTime.getSeconds();
var hours = currentTime.getHours() * 30 + currentTime.getMinutes() / 2;
var month:Array = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var day:Array = new Array('zondag','zaterdag','vrijdag','donderdag','woensdag','dinsdag','maandag');
var fileName:String = (today_date.getDate()+month[thismonth]+day[thisday]+today_date.getFullYear()+"_"+currentTime.hours + currentTime.minutes + currentTime.seconds);
trace(fileName);
