Insert current date plus one year
I want to insert the current date plus one year in my insert form for ad expiration date, an another field with expiration date of one month.
<?php
echo date("Y-m-d");
?>
Is there a way to modify this or ?
I want to insert the current date plus one year in my insert form for ad expiration date, an another field with expiration date of one month.
<?php
echo date("Y-m-d");
?>
Is there a way to modify this or ?
+ 1 year:
<?php echo date('Y-m-d',strtotime(date("Y-m-d", mktime()) . " + 1 year")); ?>
+ 1 month
<?php echo date('Y-m-d',strtotime(date("Y-m-d", mktime()) . " + 1 month")); ?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.