scott@[local]:5432 scottdb#SQL>
select
date_part('month',now()), date_part('day',now()),
date_part('hour',now()), date_part('minute',now()), date_part('second',now());
date_part | date_part | date_part | date_part | date_part
-----------+-----------+-----------+-----------+-----------
12 | 14 | 23 | 50 | 48.195204
(1 row)
Time: 0.329 ms
scott@[local]:5432 scottdb#SQL>
오라클의 TO_CHAR(SYSDATE,'DD') 류의 사용과 비슷하다는것 알수 있습니다.