select to_char( sysdate, 'DD/MM/YY HH24:MI:SS' ) "Right Now" : Date Format « Date Timezone « Oracle PL / SQL
- Oracle PL / SQL
- Date Timezone
- Date Format
select to_char( sysdate, 'DD/MM/YY HH24:MI:SS' ) "Right Now"
SQL>
SQL>
SQL> select to_char( sysdate, 'DD/MM/YY HH24:MI:SS' ) "Right Now"
2 from dual
3 /
Right Now
-----------------
16/06/08 17:28:47
1 row selected.
SQL> --
Related examples in the same category
1. | format parameter options available | | |
2. | Change the original date format in the TO_CHAR function | | |
3. | to_char( sysdate, 'HH24:MI:SS' ) | | |
4. | select to_char(sysdate,'DD-MON-YY HH24:MI:SS' ) "Right Now" | | |
5. | Use to_char to format a date type column | | |
6. | Combine to_char and trunc with date value | | |
7. | to_char(order_date, 'hh24:mi:ss') | | |
8. | Use string returned to_char from date type column in where clause | | |
9. | Get the number of days in a month with to_char | | |
10. | Converting a DATE to Another Language | | |
11. | SELECT TO_CHAR(SYSDATE, 'MM-DD-YYYY HH24:MI:SS') NOW | | |
12. | TO_CHAR(SYSDATE, 'MONTH DDTH') | | |
13. | TO_CHAR(SYSDATE, 'MONTH DDSP') | | |
14. | TO_CHAR(SYSDATE, 'MONTH DDSPTH') | | |
15. | INITCAP(RTRIM(TO_CHAR(SYSDATE, 'MONTH'))) ||' ' ||TO_CHAR(SYSDATE, 'DDTH') | | |
16. | initcap(rtrim(to_char(sysdate, 'MONTH'))) ||' ' || initcap(to_char(sysdate, 'DDSPTH')) | | |
17. | INITCAP(RTRIM(TO_CHAR(SYSDATE, 'MONTH'))) | | |
18. | to_char(LAST_STOCK_DATE, 'MON DD, YYYY HH24:MI') | | |