Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello KK,
I am trying to get the results of a date 2 weeks from a cloned page's date but I am unable to. The code I used is below but it's not working
Code: Select all
<cms:set job_date="<cms:date k_page_date format='Y-m-d H:i:s' />" "global" />
<cms:set job_expiry_date="<cms:date job_date '+2 weeks' format='Y-m-d H:i:s' />" "global" />


Can you help me with the right format? Thank you
I can help. This should work -
Code: Select all
<cms:date "<cms:show job_date /> +2 weeks" format='Y-m-d H:i:s' />


It's called 'relative dates'. See more samples at Midware Tags Reference » date
Thanks trendoman, it worked perfectly.
3 posts Page 1 of 1