Re: [PHP] Subtracting dates in php
On Tue, 1 Jul 2003 01:21:54 -0400, you wrote: Anyone know of an easy way to add or subtract dates in php the way you can in mysql? Easier, that is, than coding the logic by hand? This seems like a total pain. Convert to Unix timestamps, do regular maths, unconvert. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Subtracting dates in php
Try : Difference between two dates (i.e. between today and a date in future). The program is based on php-timestamp, but in your browser you see the usual dates(i.e.: dd.mm.) http://examples.weberdev.com/get_example.php3?count=3240 Find the Difference between today's date and a future day. http://examples.weberdev.com/get_example.php3?count=3198 how can I output the difference between two dates? http://examples.weberdev.com/get_example.php3?count=95 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 7:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Subtracting dates in php Anyone know of an easy way to add or subtract dates in php the way you can in mysql? Easier, that is, than coding the logic by hand? This seems like a total pain. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Subtracting dates in php
Anyone know of an easy way to add or subtract dates in php the way you can in mysql? Easier, that is, than coding the logic by hand? This seems like a total pain. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php