Posted By

martin_rusev on 07/21/09


Tagged

date format


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

vali29
d8n


PHP format mysql date


 / Published in: PHP
 

  1. function format_date($original='', $format="%d.%m.%Y")
  2. {
  3.  
  4. return (!empty($original) ? strftime($format, strtotime($original)) : "" );
  5.  
  6. }

Report this snippet  

You need to login to post a comment.