Date Time Format « Date Timezone « PostgreSQL
- PostgreSQL
- Date Timezone
- Date Time Format
1. | to_char(now(), 'HH:MI PM') | | |
2. | to_char('yesterday'::timestamp, 'FMMonth FMDDth') | | |
3. | to_char(now(), 'Dy (Day), Mon (Month)') | | |
4. | to_char(start_date, 'FMMonth FMDDth, YYYY') | | |
5. | to_char(start_date, 'YYYY-MM-DD') | | |
6. | to_char(start_date, 'Y,YYY "years" A.D.') | | |
7. | to_date('198025thJune', 'YYYYDDthMonth') | | |