Ver Mensaje Individual
  #11 (permalink)  
Antiguo 30/10/2011, 09:23
sebacomas
 
Fecha de Ingreso: mayo-2010
Mensajes: 414
Antigüedad: 14 años
Puntos: 2
Respuesta: cambiar fecha a español

<head>
Código Javascript:
Ver original
  1. <script type="text/javascript">
  2.  
  3. function esFecha($fecha)
  4. {
  5. setlocale(LC_TIME, 'sp_ES','sp', 'es');
  6. return ucfirst(strftime('%d de %B de %Y', strtotime($fecha)));
  7. }
  8.  
  9. </script>

</head>
<body>
Código PHP:
Ver original
  1. <td valign="top"><input type="text" value="<?php echo $rs["fecha"]; ?>" /></td>
</body>