note 99034 added to function.date-diff

From: Date: Fri, 23 Jul 2010 13:36:27 +0000
Subject: note 99034 added to function.date-diff
Groups: php.notes 
Request: Send a blank email to php-notes+get-171069@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/99034 Del: integrated -- https://master.php.net/note/delete/99034/integrated Del: useless -- https://master.php.net/note/delete/99034/useless Del: bad code -- https://master.php.net/note/delete/99034/bad+code Del: spam -- https://master.php.net/note/delete/99034/spam Del: non-english -- https://master.php.net/note/delete/99034/non-english Del: in docs -- https://master.php.net/note/delete/99034/in+docs Del: other reasons-- https://master.php.net/note/delete/99034 Reject -- https://master.php.net/note/reject/99034 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171069) next »