tengo este codigo en flash para poner la fecha, pero no he podido hacer que me despliegue el texto en un campo dinamico que le puse fecha de nombre de instancia. Ayuda
Código:
function myDate () { now = new Date(year, month, date, hour, min, sec, ms); weekday = new Array("Sunday", "Monday", "Tuesday", "Wendnesday", "Thursday", "Friday", "Saturday"); month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "Octobert", "November", "December"); diasemana = weekday[now.getDay()]; mes = month[now.getMonth()]; diadelmes = now.getDate(); modifier = new CreateArray(31); var modifier = new String("thstndrdthththththththththththththththththstndrdthththththththst"); var loop = 0; do { modifier[loop] = modifier.substring(loop*2, 2+(loop*2)); loop = loop+1; } while (loop<32); mySuffix = modifier[now.getDate()]; ano = now.getFullYear(); fecha_entera = weekday[now.getDay()]+" "+month[now.getMonth()]+" "+now.getDate()+mySuffix+" "+now.getFullYear(); return fecha_entera; } myDate();