Date Offset

Specifies the offset from the current date. This value requires a specified Date Format.

Syntax:

offset="YourDateOffset"

Where YourDateOffset can contain any of the following, individually or in a comma-delimited list:

Available Date Offset Options

Date Offset

Description

+/-[number]d [Number] day(s) incremented or decremented from the current date.
+/-[number]m [Number] month(s) incremented or decremented from the current date.
+/-[number]y [Number] year(s) incremented or decremented from the current date.

 

 

Sample Code

<date format="yyyy-mm-dd" offset="+2d" />

Results in an offset of two days from the present date. If the current date is 2014-12-01, the offset is 2014-12-03.

<date format="mm/dd/yyyy" offset="-1y,+2d" />

Results in an offset of the year before the present date. If the current date is 12/02/2014, the offset is 12/04/2013.

<date format="dd-mm-yyyy" offset="-1y" event="END_YEAR"/>

Results in an offset and event at the end of last year.