JavaScript

A5.d.date.calendar.abbreviatedformats Namespace

Description

Formats to use in abbreviated calendar dates. Used by Date.toCalendar. See Date.toFormat.

Properties

timestring

The date format to use for the time part of a calendar date. The default is "h:0ma".

daystring

The date format to use for a calendar date that is within a week (or week from) the current date. This is combined with templates to get results like "last Tue". The default is "Wd".

monthstring

The date format to use for a calendar date that is within the same month as the current date. The default is "t\\he x".

yearstring

The date format to use for a calendar date that is within the same year as the current date. The default is "x of Mon".

longerstring

The date format to use for a calendar date that is not in the same year as the current date. The default is "Mon yyyy".

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