![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
30/10/2011, 07:04
|
| | Fecha de Ingreso: mayo-2010
Mensajes: 414
Antigüedad: 14 años, 8 meses Puntos: 2 | |
Respuesta: cambiar fecha a español Hola lo que quiero es cambiar la fecha que marque en rojo a español, con el codigo que me dejaron todavía no se como hacerlo. Si alguien me puede ayudar.
<head>
<script type="text/javascript">
function esFecha($fecha)
{
setlocale(LC_TIME, 'sp_ES','sp', 'es');
return ucfirst(strftime('%d de %B de %Y', strtotime($fecha)));
}
</script>
</head>
<body>
<td valign="top"><input type="text" value="<?php echo $rs["fecha"]; ?>" /></td>
</body> |