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!

How to remove hrs:min:sec from the date field

3852914Dec 17 2018 — edited Dec 20 2018

Hi,

I have a field which comes with the value of MM/DD/YYYY HR:MN:SEC,  THere is a limitation in our application that it cannot take the time part inside a date. What is the best way to remove the time in the date and update the field with only Date values like MM/DD/YYYY. I tried using set fromdate = Trunc(fromdate); which one of my friend suggested. which is not working.

Please suggest. Regards,

Ranjit

Comments
Post Details
Added on Dec 17 2018
9 comments
16,912 views