date_calcul_ecart_entre_2_dates.php

<pre>
calculer le nombre de jours entre 2 dates
function diff_days($start_date, $end_date )
{
	  return floor(abs(strtotime($start_date) - strtotime($end_date))/86400);
  }

  echo diff_days("20041001", "20040811"); 
  </pre>
 
info/date_calcul_ecart_entre_2_dates.txt · Dernière modification: 2008/11/11 11:37 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki