Posted By

nicolaspar on 04/05/07


Tagged

date format formato fecha invert invertir


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

luman
basicmagic
kotnik
vali29


PHP - Invertir Fecha


 / Published in: PHP
 

De aa-mm-dd a dd-mm-aa y al revé

  1. function invertirFecha( $fecha ){
  2. return implode( "-", array_reverse( preg_split( "/\D/", $fecha ) ) );
  3. }

Report this snippet  

You need to login to post a comment.