note 63171 rejected from function.date by nlopess

From: Date: Wed, 15 Mar 2006 10:08:15 +0000
Subject: note 63171 rejected from function.date by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-105843@lists.php.net to get a copy of this message
Note Submitter: jakesnake27 at gmail dot com ---- if i have 2 dates in the format d-m-Y (eg) startdate = 20-01-2006 and enddate = 05-02-2006 how do i find all the available dates bewteen the 2 dates so that i can post them into a database - ive seen scripts to find the number of days, but none to list all the days this is so that the result would allow me to add the dates from start to end (inclusive) into my database 20-01-2006 21-01-2006 22-01-2006 23-01-2006 24-01-2006 25-01-2006 26-01-2006 27-01-2006 28-01-2006 29-01-2006 30-01-2006 31-01-2006 01-02-2006 02-02-2006 03-02-2006 04-02-2006 05-02-2006 so that the database would have 17 entries. thx in advance jake :)

« previous php.notes (#105843) next »