Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/08/2005, 08:00
Avatar de flaviovich
flaviovich
 
Fecha de Ingreso: agosto-2005
Ubicación: Lima, Peru
Mensajes: 2.951
Antigüedad: 18 años, 9 meses
Puntos: 39
Código:
<script language="javascript">
<!--
function getDate()
{
  var hoy = new Date();
  var fecha = (hoy.getDate() + 1) + "/" + hoy.getMonth() + "/" + (1900 + hoy.getYear())
  return fecha;
-->
}
</script>
El llamado de la funcion:
Código HTML:
<form name="" action="" method="post" onSubmit="javascript: campo.value = getDate(); return true;"> 
o lo usas donde tu necesites.