What is the code for rendering 30 days from today's date in this format yyyy-mm-dd?
Example:
Today's Date: 2020-05-18 + 30 Days = Render "2020-06-17"
Example:
Today's Date: 2020-05-18 + 30 Days = Render "2020-06-17"
<mvt:assign name="g.todayPlusThirty" value="s.time_t + 2592000"/> <mvt:assign name = "l.settings:pm:month" value = "padl( time_t_month( g.todayPlusThirty, 'local' ), 2, '0' )" /> <mvt:assign name = "l.settings:pm:day" value = "padl( time_t_dayofmonth( g.todayPlusThirty, 'local' ), 2, '0' )" /> <mvt:assign name = "l.settings:pm:year" value = "time_t_year( g.todayPlusThirty, 'local' )" /> <p>Thirty Days from Now: &mvt:pm:month;/&mvt:pm:day;/&mvt:pm:year; </p>
Comment