Adding Days to Date

3 posts by 2 authors in: Forums > CMS Builder
Last Post: July 22, 2017   (RSS)

By KennyH - July 21, 2017

I am having a bit of problem adding 15 days to the createdDate

<?php echo date('Y-m-d', strtotime($invoicesRecord['createdDate'] ' + 15 days')); ?>

The above is giving me Parse error: syntax error, unexpected '' + 15 days'' (T_CONSTANT_ENCAPSED_STRING) 

Help?

By KennyH - July 22, 2017

That worked great!

Thanks, Dave

Kenny