expiresDate 30 date in the future

3 posts by 2 authors in: Forums > CMS Builder
Last Post: March 29, 2020   (RSS)

By kitsguru - March 28, 2020

Found the solution

$expiresDate = new DateTime();
$expiresDate->add(new DateInterval('P30D'));
$colsToValues['expiresDate'] = $expiresDate->format('Y-m-d') ;
Jeff Shields

By gkornbluth - March 29, 2020

Hi Jeff,

Just so you know, there's a lot of information about comparing dates in the CMSB Cookbook.

Stay safe,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php