tempDate = new Date();
document.write(”Fecha: ” + tempDate.toLocaleString());
otraFecha = new Date(2007, 04, 11, 10, 52, 30);
document.write(”<br> Otra Fecha:” + otraFecha + “<br>”);
document.write(”Date: ” + otraFecha.getDate() +”<br>”);
document.write(”Month: ” + otraFecha.getMonth() +”<br>”);
document.write(”Year: ” + otraFecha.getYear() +”<br>”);
document.write(”Locale String: ” + otraFecha.toLocaleString() +”<br”);



Leave a comment
You must be logged in to post a comment.