Skip to content
  • Home
  • About us
  • Contact
  • Partners & Agreements
  • Products & Services
Aurlen logo
  • Home
  • About us
  • Contact
  • Partners & Agreements
  • Products & Services

Format Date and Date Year-Month-Day Hour-Minute-Second in Oracle

  • Home
  • Oracle
  • Format Date and Date Year-Month-Day Hour-Minute-Second in Oracle

Execute:

 

SELECT to_char(sysdate,'YYYY-MON-DD HH24:MI:SS')  FROM dual;

Result:

2019-SEP-26 15:24:40

 

To extract the hour::

 

SELECT TO_CHAR(SYSDATE,'HH24') AS CURRENT_HOUR FROM DUAL;

 

26/09/201926/09/2019 Super TuxOraclesysdate, to_char

Post navigation

Install Firefox with Java support in Ubuntu Linux 18.04

Categories

  • Bash (2)
  • go (golang) (1)
  • iptables (1)
  • Linux (6)
  • Monitoring (2)
  • Mysql (1)
  • NTP (2)
  • OpenVPN (1)
  • Oracle (2)
  • Postgresql (2)
  • Proxmox (1)
  • Ubuntu (2)
  • Windows (2)
  • WMI (2)
Aurlen Technologies © All rights reserved.
Powered by WordPress | Corporate Key by Axle Themes