| |||
Re: consulta Te paso el script. <head> <script type="text/javascript"> var dayEspArray = new Array("Domingo","Lunes"," Martes","Miércoles", "Jueves","Viernes","Sábad o"); var monthEspArray = new Array("Enero","Febrero"," Marzo","Abril","Mayo", "Junio","Julio","Agosto&q uot;,"Septiembre","Octubre", "Noviembre","Diciembre"); var mydate = new Date(); var year = mydate.getYear(); if (year < 1000) year+=1900; var day = mydate.getDay(); var month = mydate.getMonth(); month2 = month; var daym = mydate.getDate(); if (daym < 10) daym="0"+daym; month++; if (month < 10) month="0"+month; var fechaDia = dayEspArray[day] + " " + daym + " de " + monthEspArray[month2] + " de " + year; </script> </head> <body> <script language="JavaScript"> document.write(fechaDia); </script> </body> Saludos |