Dear Friends,
I'm new in PHP programing, and i need a way to add date in php.
here is the sample
If today is 29/01/2005 (dd/mm/yy) and i need to make an apointment for another 10 days the date recorded sould be 08/02/2005 and not 39/01/2005
is there a way to do it in just like in asp (add date) ?
One of several ways to do it:
http://www.php.net/manual/en/function.strtotime.php
<?php
echo strtotime("+1 week 3 days 4 hours 2 seconds"), "\n";
?>
Regards,
Adi
-- Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://www.php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
Attachment:
signature.asc
Description: OpenPGP digital signature