Link to home
Start Free TrialLog in
Avatar of mropenmind
mropenmind

asked on

PHP Function that makes an array of dates using startdate and enddate

Hi there I need a function that would make an array of dates using the startdate and enddate:

Example

startdate = 03-21-2012
enddate = 03-25-2012

result =
03-21-2012
03-22-2012
03-23-2012
03-24-2012
03-25-2012

Thanks,
Avatar of mropenmind
mropenmind

ASKER

Thanks
Good that you've posted that, I forgot that timezone should be EDT or EST (Now it's EDT) , not the one on the server.
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the points.  Just a note in case you missed it in the article.  MySQL and PHP timezones have to be set independently.