@Date Tokens
The token identifiers listed in the table below all deal with dates. For example, @Date.Yesterday~ will provide yesterday's date.
Dates are expressed by default in the yyyy-M-d format, which does not include leading zeros for single-digit day or month values. Examples: April 1st = "2009-4-1", April 25th = "2009-4-25", October 31st= "2009-10-31".
If needed, you can override this default format by specifying a new format in the Globalization element's Default Input Date Reformat attribute. For more information on globalization, see Internationalization and Localization . The Default Input Date Reformat attribute ensures that dates entered by the user are formatted identically to dates returned from @Date tokens. This is especially useful if you are using the @Date tokens with the Validation.Date element.
The Globalization element can be added in the _Settings definition.
To work with the @Date.FiscalQuarter~ and @Date.FiscalYear~ tokens, use the Globalization element to set the first day of the fiscal year.
@Date.TodayUtc~ returns the UTC (Greenwich Mean Time) date.
The TimePeriodColumn element can also be used to parse specific date parts out of @Date token values. For more information on the TimePeriodColumn, see Send Cell Phone SMS Messages.
These are the Date tokens:
@Date.Today~ | @Date.ThisWeekStart~ | @Date.ThisQuarterStart~ | @Date.ThisFiscalQuarterStart~ |
@Date.TodayUtc~ | @Date.ThisWeekEnd~ | @Date.ThisQuarterEnd~ | @Date.ThisFiscalQuarterEnd~ |
@Date.Yesterday~ | @Date.NextWeekStart~ | @Date.NextQuarterStart~ | @Date.NextFiscalQuarterStart~ |
@Date.Tomorrow~ | @Date.NextWeekEnd~ | @Date.NextQuarterEnd~ | @Date.NextFiscalQuarterEnd~ |
@Date.10DaysAgo~ | @Date.LastWeekStart~ | @Date.LastQuarterStart~ | @Date.LastFiscalQuarterStart~ |
@Date.30DaysAgo~ | @Date.LastWeekEnd~ | @Date.LastQuarterEnd~ | @Date.LastFiscalQuarterEnd~ |
@Date.60DaysAgo~ |
| ||
@Date.90DaysAgo~ | @Date.ThisMonthStart~ | @Date.ThisYearStart~ | @Date.ThisFiscalYearStart~ |
@Date.180DaysAgo~ | @Date.ThisMonthEnd~ | @Date.ThisYearEnd~ | @Date.ThisFiscalYearEnd~ |
@Date.365DaysAgo~ | @Date.NextMonthStart~ | @Date.NextYearStart~ | @Date.NextFiscalYearStart~ |
| @Date.NextMonthEnd~ | @DateNextYearEnd~ | @Date.NextFiscalYearEnd~ |
| @Date.LastMonthStart~ | @Date.LastYearStart~ | @Date.LastFiscalYearStart~ |
| @Date.LastMonthEnd~ | @Date.LastYearEnd~ | @Date.LastFiscalYearStart~ |