This topic is locked
[SOLVED]

 Calculate a date / now()

9/21/2020 5:33:09 AM
PHPRunner General questions
P
Philip author

I'm trying to calculate a date by using now() in an event "before record updated".

This works fine:

$values["DateUpdated"]=now();
BUT I want to have a second value for actual date/time + 10 days.

Is it possible to solve that with now() or what else is necessary?
Thanks for any help.

Sergey Kornilov admin 9/21/2020

Yes, it is possible. Check this for inspiration:

https://stackoverflow.com/questions/2332681/add-number-of-days-to-a-date

P
Philip author 9/21/2020



Yes, it is possible. Check this for inspiration:

https://stackoverflow.com/questions/2332681/add-number-of-days-to-a-date


Thanks Sergey!