Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SYSTIMESTAMP

AquaNX4Jul 16 2014 — edited Jul 16 2014

Good Day:

--Query

SELECT SYSTIMESTAMP FROM DUAL;

--Output

16-JUL-14 09.31.36.781000000 AM +04:30


My SYSTIMESTAMP is in a TIMESTAMP_TZ format.

I always have to jump through hoops to extract hours and dates, meaning trying to get the info below:

--Desired Output

Date:

16-JUL-2014

Hour:

09:31 (24HH preferred)

What is the easiest way of extracting my desired output from SYSTIMESTAMP?

Thanks for all your help!

Aqua

This post has been answered by Marwim on Jul 16 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2014
Added on Jul 16 2014
21 comments
873 views