note 99033 deleted from function.date-diff by danbrown
| From: | danbrown@php.net | Date: | Fri, 23 Jul 2010 14:22:30 +0000 |
| Subject: | note 99033 deleted from function.date-diff by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171074@lists.php.net to get a copy of this message | ||
Note Submitter: Rob
----
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!