Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/06/2015, 17:02
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 9 meses
Puntos: 379
Respuesta: Fechas en español usando la clase DateTime de PHP en Symfony2

Requieres la extensión intl
Código PHP:
Ver original
  1. $fmt = new IntlDateFormatter( "es_ES" ,IntlDateFormatter::FULL, IntlDateFormatter::FULL,
  2.     'America/Bogota',IntlDateFormatter::GREGORIAN  );
  3. echo utf8_decode($fmt->format(0));
Y revisa el componente intl de Symfony ya implementa tambien IntlDateFormatter
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.