note 63171 added to function.date
| From: | jakesnake27 at gmail dot com | Date: | Wed, 15 Mar 2006 08:12:22 +0000 |
| Subject: | note 63171 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105838@lists.php.net to get a copy of this message | ||
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 :)
----
Server IP: 216.194.113.175
Probable Submitter: 82.153.53.242 (proxied: 192.100.100.27)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- http://master.php.net/note/edit/63171
Del: integrated -- http://master.php.net/note/delete/63171/integrated
Del: useless -- http://master.php.net/note/delete/63171/useless
Del: bad code -- http://master.php.net/note/delete/63171/bad+code
Del: spam -- http://master.php.net/note/delete/63171/spam
Del: non-english -- http://master.php.net/note/delete/63171/non-english
Del: in docs -- http://master.php.net/note/delete/63171/in+docs
Del: other reasons-- http://master.php.net/note/delete/63171
Reject -- http://master.php.net/note/reject/63171
Search -- http://master.php.net/manage/user-notes.php