I need to build an array containnig all dates between two other dates (date1 and date2, witch are variables). My problem is: i don´t know very well how to manipulate dates.
that would have to be:
$date1 = 2004-07-30
$date2 = 2004-08-03
$array[0] = "2004-07-30"
$array[1] = "2004-07-31"
$array[2] = "2004-08-01"
$array[3] = "2004-08-02"
$array[4] = "2004-08-03"
Any help is very welcome.
Thanks.
that would have to be:
$date1 = 2004-07-30
$date2 = 2004-08-03
$array[0] = "2004-07-30"
$array[1] = "2004-07-31"
$array[2] = "2004-08-01"
$array[3] = "2004-08-02"
$array[4] = "2004-08-03"
Any help is very welcome.
Thanks.