Tema: Fechas php
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/09/2010, 19:01
KaozC9
 
Fecha de Ingreso: abril-2010
Ubicación: Chile
Mensajes: 76
Antigüedad: 14 años
Puntos: 3
Respuesta: Fechas php

hacer, haciendolo a la rapida:
Código PHP:
Ver original
  1. <?php
  2. $fecha = "2010-09-16";
  3. $fecha = explode('-', $fecha);
  4. $fecha = strtoupper(date("M-d", mktime(0, 0, 0,$fecha[1], $fecha[2], $fecha[0])));
  5. echo $fecha;
  6. //deberia imprimir SEP-16
  7. ?>

jejeje, me ganaste ylellan, pero este es más corto si no le importa que aparezcan abreviaturas en ingles cono "Jan" para Enero