DayPeriodAltType
Syntax
'none' | 'casing'
Values
'none'- Default. Field will have it's common value, in English
"AM".
- Default. Field will have it's common value, in English
'casing'- Value with alternate case, in English
"am". Where not available the defaultvalue is used.
- Value with alternate case, in English
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