This topic is locked

How to set default value for date field to one month from today

7/8/2014 7:04:56 PM
PHPRunner Tips and Tricks
Sergey Kornilov admin

Use the following as a default value:

date('Y-m-d',strtotime('next month'))
If need to add a few days to the current date i.e. the same day next week use the following:

date('Y-m-d', strtotime("+7 days"))