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,
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,
Read this article while I get the code tested for you.
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html
https://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_201-Handling-date-and-time-in-PHP-and-MySQL.html
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Thanks for the points. Just a note in case you missed it in the article. MySQL and PHP timezones have to be set independently.
ASKER