Here is the method to display timestamp in the convenient format:
SELECT TO_CHAR (SYSTIMESTAMP, 'YYYY-MM-DD HH24:MI:SS') s_date
FROM DUAL;
FROM DUAL;
Simple conversion of the timestamp:
SELECT CAST(SYSTIMESTAMP AS DATE) x_date FROM DUAL;
Oracle: converting timestamp to dateHere is the method to display timestamp in the convenient format: SELECT TO_CHAR (SYSTIMESTAMP, 'YYYY-MM-DD HH24:MI:SS') s_date FROM DUAL; Simple conversion of the timestamp: SELECT CAST(SYSTIMESTAMP AS DATE) x_date FROM DUAL; This site uses Akismet to reduce spam. Learn how your comment data is processed. |
CategoriesArchives
A sample text widgetEtiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa. Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna. |
Leave a Reply