insertar fecha en un archivo html

Ctesias
20 de Julio del 2004
Me gustaria saber el codigo html exacto para insertar la fecha y hora

Gracias x leerlo
:)

M.F.Luder
20 de Julio del 2004
andas de suerte, aqui te muestro el codigo que debes copiar y pegar dentro del body en el lugar que quieras que aparezca:


<CENTER>

</TABLE>

<BR>
<BR>
<BR>
<B><I><FONT SIZE="6" FACE="Comic Sans MS" COLOR="#000FFF"">
<SCRIPT languaje="JAVASCRIPT">
function dia_semana (d1,d2,d3,d4,d5,d6,d7) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
}

function mes_ano (d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12) {
this[0]=d1;
this[1]=d2;
this[2]=d3;
this[3]=d4;
this[4]=d5;
this[5]=d6;
this[6]=d7;
this[7]=d8;
this[8]=d9;
this[9]=d10;
this[10]=d11;
this[11]=d12;
}

semana= new dia_semana ("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");

mes=new mes_ano ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

var today = new Date;
diahoy = today.getDay();
fechahoy = today.getDate();
meshoy = today.getMonth();
horahoy = today.getHours();
minutohoy = today.getMinutes();
ano = today.getYear();

function dia () {
document.write (semana[diahoy]+' '+fechahoy);
document.write (' de '+mes[meshoy]+' de '+ano);
document.write ("<BR>");
if (minutohoy<10) {minutohoy="0"+minutohoy}
document.write (' Entraste a las '+horahoy+':'+minutohoy+' horas ');
}
</SCRIPT>
<SCRIPT>dia()</SCRIPT>
<SCRIPT languaje="JavaScript">
var hoy = new Date ();
var hora = hoy.getHours ();
</SCRIPT>
</FONT></I></B>

ahora, puedes cambiar el tipo de texto cambiando EXACTAMENTE el nombre de la fuente, este tiene """"Comic Sans MS"""" puedes cambiar el tamaño tambien, este tiene
""""FONT SIZE="6" """" y cambias el color del texto con COLOR="#000FFF"" espero y te sirva, Buen Dia y suerte.

srweb
20 de Julio del 2004
te paso otro codigo para poner la fecha y la hora

<html>
<head>
<script languaje="javaScript">

function quehoraes() {

Hora = new Date();
hora = Hora.getHours();
minutos = Hora.getMinutes();
segundos = Hora.getSeconds();
horaactual = ( (hora >12) ? hora -12 :hora)
horaactual+=( (minutos < 10 ) ? ":0" : ":") + minutos
horaactual+=( (segundos < 10) ? ":0" : ":") + segundos
horaactual+=( hora >= 12 ) ? " P.M" : " A.M"
document.formulario.relog.value = horaactual
setTimeout("quehoraes()",1000);

}

</script>

</head>
<body onload="quehoraes()">

<script languaje="javascript">
dias=new Array
('Domingo',
'Lunes',
'Martes',
'Miercoles',
'Jueves',
'Viernes',
'Sabado');
meses=new Array
('Enero',
'Febrero',
'Marzo',
'Abril',
'Mayo',
'Junio',
'Julio',
'Agosto',
'Septiembre',
'Octubre',
'Noviembre',
'Diciembre');
ahora=new Date();
dia=ahora.getDay();
dSem=ahora.getDate();
mes=ahora.getMonth();
anyo=ahora.getFullYear();
document.write(dias[dia]+' '+dSem+' de '+meses[mes]+' de '+anyo+'');
</script>

<form name="formulario">
<input type="text" size=14 name="relog">
</form>

</body></html>