RE: [PHP] Converting dates?
| From: | Jack Dempsey | Date: | Sat, 17 Nov 2001 20:30:46 +0000 |
| Subject: | RE: [PHP] Converting dates? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-75007@lists.php.net to get a copy of this message | ||
search the archives there are tons of messages dealing with date
manipulation.....
basically take the timestamps find the difference in seconds, convert to
days, etc
jack
-----Original Message-----
From: Jeff Lewis [mailto:jeff@hyrum.net]
Sent: Saturday, November 17, 2001 3:17 PM
To: PHP is not a drug.
Subject: [PHP] Converting dates?
I am storing a birthdate in my database as a Unix timestamp but when I
display it I want to calculate the different between that date and todays
date and display the persons age.
How can I do that with PHP?
I also want to know if it is currently their birthday. So trying to set
$isbday to yes if todays month and day are the same as their birthdate in
the database.
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net