This topic is locked

now() + 1 year

12/7/2005 1:32:45 PM
PHPRunner General questions
D
defcon2000 author

Hi,
I want in a certain field to show the date 1 year from now. How can I use that with now()?
Thanks in advance for your help.
Rgds,

Sergey Kornilov admin 12/8/2005

Hi,
you can use the following default value for your date field:

strftime("%Y-%m-%d",time()+3656060*24)

D
defcon2000 author 12/8/2005