The date class provides fewer methods in ExtJS. But on the other hand, for historical reasons, now date is a lot of letters in any language that characterize its format variables. This section focuses on date format representations of dates. These are the contents of the ExtJS API, if there is a Chinese version can jump directly over here. If you need to keep looking, note that the format characters are case-sensitive.
Years
The number of Y years indicates that 4 digits, such as 1999
Two digits of y years, for example 99 or 03
o iso-8601 number representation (same as Y, but if the number of ISO weeks belongs to the previous year or the next year, then the year) for example 1998 or 2004
L is a leap year. 1 represents a leap year, otherwise 0
Month
The full name of the month F. Januray to December
The abbreviation for the M-month text. to Dec.
The number of M months indicates that 0 begins. For example 01 to 12
n the number of months, not beginning with 0. 1 to 12
Week
D represents the abbreviation of the weekly transit. For example, Mon to Sun
L, like D, is just a full name, like Sunday to Saturday.
W 7 days a week number for 0 (Sunday) to 6 (Saturday)
N iso-8601 a 7-day week of digital representation. 1 expression Monday (Monday) to 7 means Sunday (Sunday)
W iso-8601 the number of weeks in a year. Counted weekly from Monday onwards. So there are 01-53, the order is marked for 53 weeks.
Day
D, with two digits beginning with 0, represents the day of one months. For example, 01 to 31
J is the same as D, except that it doesn't start with 0. For example, 1 to 31
t the number of days in a given month. 28 to 31
s English suffix, used to indicate one months of the day, 2 characters, with J can be good match. For example, St,nd,rd, or th (1st,2nd,3rd,4th)
Z A number of 365 days a year is indicated, starting from 0. That is 0-364, leap year is 0-365.
Last afternoon
A am and PM lowercase. For example, am or PM
Uppercase for a AM and PM. For example, am or PM
When
G does not start with 0 12-hour format, 1 to 12
H 12-hour format starting with 0, 01 to 12
G does not start with 0 24-hour format, 0 to 23
H 24-hour format starting with 0, 00 to 23