note 99033 added to function.date-diff
| From: | Rob at osu1 dot php dot net | Date: | Fri, 23 Jul 2010 13:08:04 +0000 |
| Subject: | note 99033 added to function.date-diff | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171068@lists.php.net to get a copy of this message | ||
Hey guys -
I was wondering is there a good way to compare month only.
For example - I have a range that is not year specific for departures on a tour, kind of looks like
this.
April -> October trip starts at 10am and 3pm
November -> March trip starts at 1pm only.
The user selects the date they want to go on the trip and from that I want to be able to tell them
when the trip leaves - depending on the month...
I have got the month out easily with date('m'), and the data stored in the database is in
01 - 12 format too.
So yea - what is the best way would you say to compare the date month from user input to then return
the correct times :)
Thanks to anyone who has a look at this!
----
Server IP: 69.147.83.197
Probable Submitter: 87.112.171.15
----
Manual Page -- http://www.php.net/manual/en/function.date-diff.php
Edit -- https://master.php.net/note/edit/99033
Del: integrated -- https://master.php.net/note/delete/99033/integrated
Del: useless -- https://master.php.net/note/delete/99033/useless
Del: bad code -- https://master.php.net/note/delete/99033/bad+code
Del: spam -- https://master.php.net/note/delete/99033/spam
Del: non-english -- https://master.php.net/note/delete/99033/non-english
Del: in docs -- https://master.php.net/note/delete/99033/in+docs
Del: other reasons-- https://master.php.net/note/delete/99033
Reject -- https://master.php.net/note/reject/99033
Search -- https://master.php.net/manage/user-notes.php