Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/01/2003, 15:45
Avatar de Kaopectate
Kaopectate
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: Curaçao (Antillas Holandesas)
Mensajes: 3.179
Antigüedad: 23 años, 1 mes
Puntos: 38
Hola bacho.

Pruébalo asi:

Código PHP:
<html>
 <
head>
  <
script language="jscript">
   function 
muestra(){
    var 
fecha;
    
fecha= new Date(); 
    
document.programacion.dia_recibido.valuefecha.getDate();
    
document.programacion.mes_recibido.valuefecha.getMonth() + 1;
    
document.programacion.anio_recibido.valuefecha.getFullYear();
    
document.programacion.hora_recibido.value fecha.getTime();
   }
  
</script>
 </head>
 <body onload="muestra()">
  <form name="programacion">
   Día: <input type="text" name="dia_recibido"><br>
   Mes: <input type="text" name="mes_recibido"><br>
   Año: <input type="text" name="anio_recibido"><br>
   Hora: <input type="text" name="hora_recibido"><br>
  </form>
 </body>
</html> 
Saludos.