You are viewing the documentation for Blueriq 18. Documentation for other versions is available in our documentation directory.
Date pattern | Range | Description | Format only |
---|---|---|---|
d | 1-31 | Displays the day as a number without a leading zero. | |
dd | 1-31 | Displays the day as a number with a leading zero when appropriate. | |
M | 1-12 | Displays the month as a number without a leading zero. | |
MM | 1-12 | Displays the month as a number with a leading zero when appropriate. | |
yy | 0-99 | Displays the year as a two-digit number (using the last two digits). | |
yyyy | 1-9999 | Displays the year as a four-digit number. | |
h | 0-11 | Displays the hour as a number without a leading zero, based on the 12-hour clock. | |
HH | 0-23 | Displays the hour as a number with a leading zero, based on the 24-hour clock. | |
hh | 0-11 | Displays the hour as a number with a leading zero, based on the 12-hour clock. | |
mm | 0-59 | Displays the minute as a number with a leading zero. | |
ss | 0-59 | Displays the second as a number with a leading zero. | |
S | 0-9 | Displays the decisecond | |
SS | 0-99 | Displays the centisecond | |
SSS | 0-999 | Displays the millisecond | |
a | N/A | Displays AM for times from midnight until noon and PM for times from noon until midnight. |
The 'null' date is 1970-01-01, that means when the year, month or day are not in the date/time pattern, the respective values will be used.
The following characters are allowed to be used as separators in a date pattern:
Character | Description |
---|---|
- | Hyphen |
, | Comma |
. | Period |
; | Semicolon |
: | Colon |
Space | |
/ | Forward slash |
T | Time separator |
Although it is possible to add extra separator characters through custom (Java) code, these characters will have no special meaning. For example when adding the 'Z' character to the end of the date/time pattern, this will NOT be treated as a time zone designator. All date/times are interpreted using the system default timezone.
Overview
Content Tools