Skip to main content
Version: 1.2.10

DayPeriodAltType

Syntax

'none' | 'casing'

Values

  • 'none'
    • Default. Field will have it's common value, in English "AM".
  • 'casing'
    • Value with alternate case, in English "am". Where not available the defaultvalue is used.

Example

const cldr = framework.get('en');
const date = cldr.Calendars.newGregorianDate({ hour: 12, minute: 23 });
const skeleton = 'hma';
log(cldr.Calendars.formatDate(date, { skeleton }));
log(
cldr.Calendars.formatDate(date, { skeleton, alt: { dayPeriod: 'casing' } })
);
12:23 PM
12:23 pm

References