I have a table
SELECT
DATE_CREATED_AT AS Timestamp,
TO_TIMESTAMP(CONVERT_TIMEZONE('America/New_York', Timestamp::timestampntz)) AS EST
FROM
"MyTable"
This query returns data in the following format:
EST
------------------------
2020-03-05 18:45:04.000
But I want EST
to return data in the following format
EST
--------------------
2020-03-05 6:45:00
How do I do that?
Thanks in advance
dd/mm/yyyy hh12:mi:ss am
to convert into 12 hrs format. – zealous6:45:00
could be eitherAM
orPM
– Paul Maxwell