Hi,
This is a general PHP question, and not really PHP-GTK or Joomla specific, which this site is about.
In any case, you can use stototime(). For example:
| Code: |
echo strtotime("now"), "\n";
echo strtotime("10 September 2000"), "\n";
echo strtotime("+1 day"), "\n";
echo strtotime("+1 week"), "\n";
echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";
echo strtotime("next Thursday"), "\n";
echo strtotime("last Monday"), "\n";
|
For your case, most likely you will want to have the date in the proper format, so you might want to use:
| Code: |
<?php
$now = "September 30, 2008";
echo date('M d, Y', strtotime("$now +15 day"));
?>
|
You can see more information in the
PHP official documentation
Regards,
/kksou