Admin Manual / Appendix A – Witly Script / Variable / Date
Date

Returns a date value in the specified format as stated in the profile settings or in a default format if it is not specified.

Variable

Description

Date.Now

Returns a current date and time value.

Date.Today

Returns a current date value.

Date.ThisMonth

Returns the current month as a number (1-12).

Date.ThisYear

Returns the current year in a number format.

Date.ThisWeek

Returns the current week as a number (1-52).

Date.ThisQuarter

Returns the current quarter as a number (1-4).

Date.LastMonth

Returns last month as a number (1-12).

Date.LastYear

Returns last year in a number format.

Date.LastWeek

Returns last week as a number (1-52).

Date.LastQuarter

Returns last quarter as a number (1-4).

Date.NextMonth

Returns next month as a number (1-12).

Date.NextYear

Returns next year in a number format.

Date.NextWeek

Returns next week as a number (1-52).

Date.NextQuarter

Returns next quarter as a number (1-4).

Last modified on Jan 23, 2018