How Can We Know The Number Of Days Between Two Given Dates Using PHP

How Can We Know The Number Of Days Between Two Given Dates Using PHP


  • 30 Dec, 2011

    Simple arithmetic:$date1 = date('Y-m-d');$date2 = '2006-07-01';$days = (strtotime() - strtotime()) / (60 * 60 * 24);echo "Number of days since '2006-07-01': $days";

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.