Carrot reference
Functions
date()
Converts input to Date including relative Date input.
date(value[, date])
- value - the value to be evaluated by the function.
- If value is not provided, the default will be the current date.
- Can be used as a modifier, for example "+6w" or "-5m".
- date - (optional) a parameter to be used in conjunction with a modifier value. Typically used to specify a Date to be modified.
date() returns the current date.
date(createDate) returns the value of createDate.
date("+6w", createDate) returns a date six weeks from the value of createDate.