SyntaxFix
Write A Post
Hire A Developer
Questions
Below code will give the output for number of days, by taking out the difference between two dates..
$str = "Jul 02 2013"; $str = strtotime(date("M d Y ")) - (strtotime($str)); echo floor($str/3600/24);