Date operations

[date memo="date 1" name="date_1" format="mm/dd/yy" default="timestamp"]
[date memo="date 2" name="date_2" format="DD, d MM, yy" default="Thursday, 26 July, 2022"]
date 1 minus date 2 --> [calc value="score1=(date_1).dateDiff((date_2))"]
date 1 plus 7 days --> [calc value="score2=(date_1).dateAdd(7)"]
date 1 minus 7 days, long format --> [calc value="score3=(date_1).dateAdd(-7, 'DD, d MM, yy')"]
date 1
date 2
date 1 minus date 2 --> score1=(date_1).dateDiff((date_2))
date 1 plus 7 days --> score2=(date_1).dateAdd(7)
date 1 minus 7 days, long format --> score3=(date_1).dateAdd(-7, 'DD, d MM, yy')

Result - Copy and paste this output:

Sandbox Metrics: Structured Data Index 1, 5 form elements, 17 boilerplate words, 2 dates, 3 calculations, 2 total clicks
Questions/General site feedback · Help Ticket

Send Feedback for this SOAPnote

Your email address will not be published. Required fields are marked *

More SOAPnotes by this Author: