Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONVERT DATE TIME 01/16/2018 10:30:08PM TO 2018-01-16 22:30:08 2

Status
Not open for further replies.

kernal

Technical User
Feb 27, 2001
415
US
How do I convert a datetime 01/16/2018 10:30:08PM TO 2018-01-16 22:30:08?

Help is very appreciated!
 
TO_CHAR(MY_DATE_COLUMN,'YYYY-MM-DD HH24:MI:SS')

If you are talking about converting a string then

TO_CHAR(to_date('01/16/2018 10:30:08PM','MM/DD/YYYY HH:MI:SSPM'),'YYYY-MM-DD HH24:MI:SS')

Bill
Lead Application Developer
New York State, USA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top