Skip to main content
Version: 2.1.x

Interface: DateDisplayData

SimpleCalendar.DateDisplayData

Object containing all formatted strings for displaying a date and time

Properties

date

date: string

The formatted date string based on the configuration display option for Date Format.


day

day: string

The numerical representation of the day.


daySuffix

daySuffix: string

The Ordinal Suffix associated with the day number (st, nd, rd or th)


month

month: string

The numerical representation of the month.


monthName

monthName: string

The name of the month.


time

time: string

The formatted time string based on the configuration display option for Time Format.


weekday

weekday: string

The name of the weekday this date falls on.


year

year: string

The numerical representation of the year


yearName

yearName: string

The name of the year, if year names have been set up.


yearPostfix

yearPostfix: string

The postfix value for the year


yearPrefix

yearPrefix: string

The prefix value for the year