Re: Date Comparsion

From: Date: Thu, 20 Jun 2002 20:41:09 +0000
Subject: Re: Date Comparsion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103203@lists.php.net to get a copy of this message
I never saw the original post, but you'll want to use the TO_DAYS() function in your query. SELECT TO_DAYS(leave_to) - TO_DAYS(leave_from) AS Num_Days FROM your_table ---John Holmes... ----- Original Message ----- From: "Lazor, Ed" <ELazor@providence.org> To: "'Jack'" <nedcor4@nedcor.com.hk>; <php-db@lists.php.net>; <php-general@lists.php.net>; <php-windows@lists.php.net> Sent: Thursday, June 20, 2002 12:53 PM Subject: RE: [PHP] Date Comparsion > Check out the date() and mktime() functions. > > > -----Original Message----- > > Now i want to compare the leave_from and leave_to date to find out the > > number of days between! > > > > What should i do or any function in php can provide this operation? > > > **************************************************************************** > This message is intended for the sole use of the individual and entity to > whom it is addressed, and may contain information that is privileged, > confidential and exempt from disclosure under applicable law. If you are > not the intended addressee, nor authorized to receive for the intended > addressee, you are hereby notified that you may not use, copy, disclose or > distribute to anyone the message or any information contained in the > message. If you have received this message in error, please immediately > advise the sender by reply email and delete the message. Thank you very > much. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#103203) next »