The open source database client DBeaver has the ability to specify a format in which to present date and time values in results sets. The tables defined here identify the date and time parts and what they will represent when used as part of the mask.
To open the settings:
From the settings on the right side of this dialog, look for the Type pop-up menu and the Settings Name/Value fields. There is a Name/Value combination for each item in the Type pop-up menu. A custom mask can be supplied for the desired presentation of date and time data.
To open the settings:
- Select File | Preferences
- Expand the Common item
- Choose the Date Formats item
From the settings on the right side of this dialog, look for the Type pop-up menu and the Settings Name/Value fields. There is a Name/Value combination for each item in the Type pop-up menu. A custom mask can be supplied for the desired presentation of date and time data.
Shorthand | Description | Example |
Date | ||
d | Day without leading zero | 7 |
dd | Day with leading zero | 07 |
M | Month without leading zero | 1 |
MM | Month with leading zero | 01 |
MMM | Abbreviated month | Jan |
MMMM | Formal month | January |
yy | Short year | 13 |
yyyy | Full year | 2013 |
Time | ||
a | AM/PM (upper case) | AM |
h | Hour without leading zero | 9 |
hh | Hour with leading zero | 09 |
m | Minutes without leading zero | 8 |
mm | Minutes with leading zero | 08 |
s | Seconds without leading zero | 5 |
ss | Seconds with leading zero | 05 |
z | Time zone (upper case) | EST |
Comments
Post a Comment