# Populate date intervals (need help!)

**URL:** <https://forum.kirupa.com/t/populate-date-intervals-need-help/291678>\
**Category:** Uncategorized\
**Created:** [July 3, 2009, 12:59am UTC](https://forum.kirupa.com/t/populate-date-intervals-need-help/291678 "2009-07-03T00:59:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![edryan](https://avatars.discourse-cdn.com/v4/letter/e/a8b319/32.png) [@edryan](https://forum.kirupa.com/u/edryan)\
**Post date:** [July 3, 2009, 12:59am UTC](https://forum.kirupa.com/t/populate-date-intervals-need-help/291678/1 "2009-07-03T00:59:18Z")

</div>

Hi,  
I need to populate and print the date intervals of two dates.

Example:  
$date1 = “07/11/2009”;  
$date2 = “06/11/2010”;

Output should be:

```
    07/11/2009
    08/11/2009
    09/11/2009
    10/11/2009
    11/11/2009
    12/11/2009
    01/11/2010
    02/11/2010
    03/11/2010
    04/11/2010
    05/11/2010
    06/11/2010

```

What function should I use? Can mysql do the interval or difference between dates? If so, how can I print it using php?

I’ve been googling this for hours but never found out the solution. Im a newbie to php.  
I really need this badly. If any script is available, that would be good. Thank you…
