Table 57. Date Edit Format Characters
Last 3, 2, or 1 digit(s) of year. On input, for calculating the 4-digit year, the current century and/or decade are used. For example, a ‘9' using the 'Y' mask would result in 1999 as the year if the current year is in the 1990s. | |
Last 2 digits of year; for years in other centuries. See Table 58, Date Edit Format Code-RR. | |
Week of year (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year. | |
Week of the month (1-5) where week 1 starts on the first day of the month and ends on the seventh. | |
Japanese Imperial Era. Returns the name of the of the Japanese Imperial Era in the appropriate kanji ('Heisei' is the current era). | |
Year of the Japanese Imperial Era. Returns the current year within the Japanese Imperial Era. Note: The common Japanese date format is: 'YYYY<nen>MM<gatsu>DD<nichi>' where <nen>, <gatsu>, and <nichi> are the kanji strings for year, month, and day respectively. | |
Julian day; the number of days since Jan 1, 4713 BC. Numbers specified with 'J' must be integers. | |
Fractions of a second. Precise to microseconds; however, for most hardware and databases, this much accuracy will not be attainable. | |