| adireddy 2004-04-21, 3:14 pm |
| The following is the code to display date similar to the one in my website
[L=www.adiinteractive.com]http://www.adiinteractive.com[/L]
Place the code in the timeline and create a dynamic text field with name
"date_txt"
var d = new Date();
days = new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
months = new
Array("January","Febuary","March","April","May","June","July","August","Septembe
r","October","November","December");
hrs = d.getHours();
mins = d.getMinutes();
secs = d.getSeconds();
if(hrs < 10){ hrs = "0"+hrs; }
if(mins < 10){ mins = "0"+mins; }
if(secs < 10){ secs = "0"+secs; }
this.date_txt.text = months[d.getMonth()]+" "+d.getDate()+",
"+d.getFullYear()+ " "+hrs+":"+mins+":"+secs;
|