gracias capo!!!
busque en google y el buscador del foro pero no encontre nada.
Acá va mi código:
Código HTML:
<html>
<head>
<title>fecha</title>
<script language= "Javascript">
function fecha() {
var fecha = new Date();
document.getElementById("elemento").value = fecha.getDate() + "/" + (fecha.getMonth() + 1) + "/" + fecha.getFullYear();
}
</script>
</head>
<body onLoad="fecha()">
<strong>Fecha del día:</strong>
<input type= "text" name="ingreso" id="elemento" size="10" maxlength="9"><p>
</body>
</html>
saludos... y gracias por ser tan paciente, jaja