// $pastDateStr = string representation of past date $pastDateTS = strtotime($pastDateStr); For ($currentDateTS = $pastDateTS; $currentDateTS <= strtotime("now"); $currentDateTS += (60 * 60 * 24)) { // use date() and $currentDateTS to format the dates in between } HTH, Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 323.330.9870 Main: 323.330.9900 www.worldpokertour.com Confidentiality Notice: This e-mail transmission (and/or the attachments accompanying) it may contain confidential information belonging to the sender which is protected. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on the contents of this information is prohibited. If you have received this transmission in error, please notify the sender by reply e-mail and destroy all copies of this transmission. > -----Original Message----- > From: Dan McCullough [mailto:dan.mccullough@xxxxxxxxx] > Sent: Wednesday, March 15, 2006 9:58 AM > To: php-general@xxxxxxxxxxxxx > Subject: date from YYYY-MM-DD to current date > > I need to loop from a date in the past to current date getting all > dates in between. Anyone have an idea on how to do that? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php