JavaScript

A5.d.date.calendar.standardformats Namespace

Description

Formats to use in standard 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:0mam".

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 Friday". The default is "Weekday".

monthstring

The date format to use for a calendar date that is within the same month as the current date. The default is "Wd 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 "Wd t\\he 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 "Wd t\\he x of Mon yyyy".

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