JavaScript

A5.d.date.calendar.abbreviatedtemplates Namespace

Description

Templates to use in abbreviated calendar dates. Used by Date.toCalendar.

Properties

laststring

The template to use when referring to a calendar date that was within the last week. The calendar date is included by inserting "{data}" into the template. The default template is "last {data}".

yesterdaystring

The template to use when referring to a calendar date that was yesterday. The time is included by inserting "{data}" into the template. The default template is "yesterday {data}".

todaystring

The template to use when referring to a calendar date that is also today. The time is included by inserting "{data}" into the template. The default template is "today {data}".

tomorrowstring

The template to use when referring to a calendar date that will be tomorrow. The time is included by inserting "{data}" into the template. The default template is "tomorrow {data}".

nextstring

The template to use when referring to a calendar date that is within the next week. The calendar date is included by inserting "{data}" into the template. The default template is "next {data}".

weekFromstring

The template to use when referring to a calendar date that is within the week following the next week. This can be blanked out (set to "") in order to not be used. The calendar date is included by inserting "{data}" into the template. The default template is "week from {data}".

Any properties in this namespace can be replaced in order to support other languages or formats.