Skip to content

Formatting Dates & Times

In various components you can customize how dates and times are displayed, like in the program guide or the character generator.

TokenMeaningExample
yYear2026
yyTwo-digit year26
yyyyFour-digit year2026
MNumeric month7
MMTwo-digit month07
MMMAbbreviated monthJul
MMMMFull monthJuly
dDay of the month21
ddTwo-digit day of the month21
EEEAbbreviated weekdayTue
EEEEFull weekdayTuesday
HHour on a 24-hour clock8
HHTwo-digit hour on a 24-hour clock08
hHour on a 12-hour clock8
hhTwo-digit hour on a 12-hour clock08
mMinute5
mmTwo-digit minute05
sSecond4
ssTwo-digit second04
aAM/PM markerPM
zShort timezone nameEDT
zzzzLong timezone nameEastern Daylight Time
XXXISO timezone offset-04:00

Text that is not a format token can be included inside single quotes. Use two single quotes to display a literal single quote.

guide:
timezone: "America/New_York"
dateFormat: "EEEE, MMMM d, yyyy 'on TVS'"
currentTimeFormat: "'CURRENT TIME:' h:mm:ss a z"
currentTimeslotTimeFormat: "h:mm a 'ET'"

This produces values such as Tuesday, July 21, 2026 on TVS, CURRENT TIME: 10:05:38 PM EDT, and 10:30 PM ET.