Category Archives: PHP

Fetch all dates between two dates – PHP

When build an event in a calender; we want to fetch all dates between the date using php. Store the dates into a php variable fromdate and todate. Then we can fetch all dates between these fromdate and todate using for loop in php. The output is: 2017-12-01 2017-12-02 2017-12-03 2017-12-04 2017-12-05 2017-12-06