• Códigos 10.12.2008

    dibujo1Otra función chorra que  ahorra tiempo a la hora de programar, toma una fecha y te la devuelve correctamente formateada, además es muy sencilla y para usarla solo tienes que realizar la llamada: formatear_fecha ($fecha); y listo.

    function formatear_fecha ($fecha) {
    $a = explode (”-”, $fecha);
    $fecha_formateada = $a[2].”-”.$a[1].”-”.$a[0];
    return $fecha_formateada;
    }

    Related Posts with Thumbnails
    Comparte este artículo:
    • Digg
    • Sphinn
    • del.icio.us
    • Facebook
    • Mixx
    • Google Bookmarks
    • BarraPunto
    • Meneame
    • Bitacoras.com
    • Technorati
    • Blogosphere News
    • Live
    • Yahoo! Bookmarks

    Miércoles, 10 de Diciembre de 2008

  • Leave a Comment

    Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

Traductor

Nos han Visitado

  • 300816 Visitantes

Visitantes

    free counters

Comunidad


Publicidad


**************************************** PAGE RANK **********************************************-->