Reminder about Overrides

When using the override system, note the use of camel case - i.e. "dateFormat" becomes "overrideDateFormat"
<input type="text" data-role="datebox" data-options='{ "mode": "calbox", "overrideDateFormat": "%A, %B %-d, %Y" }'>

Date Format Operators

The date format follows the POSIX standards. There are two non-standard extensions, and 5 extensions for use with duration modes. By default, all numbers are zero-padded. (see modifiers section)

Filter:

Standard Operators

String

%%

A Literal '%'
String

%a

Abbreviated Name of Day
String

%A

Full Name of Day
String

%b

Abbreviated Name of Month
String

%B

Full Name of Month
Number

%C

Century (First 2 digits of a modern year)
Number

%d

Day of Month
Number

%E

Year of the Buddhist Era (Nominally Year + 543). Note, this may be wrong pre-1940CE
Number

%G

The ISO 8601 week-based year with century as a decimal number. The 4-digit year corresponding to the ISO week number (see %V). This has the same format and value as %Y, except that if the ISO week number belongs to the previous or next year, that year is used instead.
Number

%g

Like %G, but without century, that is, with a 2-digit year (00-99).
Number

%H

24-Hour, Hour of day (01..23)
Number

%I

12-Hour, Hour of day (01..12)
Number

%j

The day of the year as a decimal number (range 001 to 366).
Number

%k

24-Hour, Hour of day (01..23) (Alias of %H)
Number

%l

12-Hour, Hour of day (01..12) (Alias of %I)
Number

%m

Month of year (01..12)
Number

%M

Minute of the hour (00..59)
String

%p

Meridian Letters (AM/PM) in uppercase
String

%P

Meridian Letters (AM/PM) in lowercase
Number

%s

The number of seconds since the Epoch, 1970-01-01 00:00:00, in the local timezone
Number

%S

Seconds (00..59)
Number

%u

The numeric day of the week (1-7), 1 = Sunday
Number

%U

The week number of the current year as a decimal number, range 00 to 53, starting with the first Sunday as the first day of week 01. See also %V and %W.
Number

%V

The ISO 8601 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the new year.
Number

%w

The numeric day of the week (0-6), 0 = Sunday
Number

%W

The week number of the current year as a decimal number, range 00 to 53, starting with the first Monday as the first day of week 01.
Number

%y

Year (00-99) (2 Digit)
Number

%Y

Full Year (4 Digit)

Extension Operators

String

%o

Date ordinal ( st / nd / rd / th )
String

%J

toJSON() JavaScript Date Method output. Can be read in a parser only when it is alone.
Number

%Dd

Duration Days
Number

%Dl

Duration Days
Number

%DM

Duration Minutes
Number

%DS

Duration Seconds
String

%DA

Duration Days text - e.g. Day or Days

Modifiers

Modifier

0

Pad with zeros (the default) - e.g. 4 -> %0d -> 04
Modifier

-

Pad with nothing - e.g. 4 -> %-d -> 4
Modifier

X

Pass to custom formatter (custombox / customflip) e.g. %XA -> send 'A' to customflip.