Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Formater les date d’un tableau

 date
{filelink=15259}

<?php
  setlocale (LC_TIME, 'fr_FR.utf8','fra');
  $mydates = array('20011-01-01', '2000-15-03', '2005-05-22',
  '2011-05-23', '2005-12-31');

  foreach($mydates as $mydate)
  {
    print strftime("%A %d %B %Y %T", strtotime($mydate)). "<br />";
    }
?>

No comments yet.

Leave a Comment