Posted By

ptiswitz on 02/25/11


Tagged

time date format french


Versions (?)

strotime for french date


 / Published in: PHP
 

The date format is dd/mm/YYYY but you can replace slashes by anything else.

  1. <?php
  2. $date = '25/02/2011';
  3. $date = implode('-', array_reverse(explode('/', $date)));
  4. $time = strtotime($date);
  5. ?>

Report this snippet  

You need to login to post a comment.