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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Date conversion, '20130205 23:59:59'

994691Mar 19 2013 — edited Mar 19 2013
Hello every one,

Can any one please suggest me how to write the sql query for '20130317 23:59:59' .
In the above it is hard coded,
I want to use this in a sql query, where it will give the result as current date-2 , which is today march 19th so it should return march 17th.
But I can use 'sysdate-2' to get march 17th, but how to get the other part 23:59:59. can any one help me in it ASAP

Thanks.

Edited by: 991688 on Mar 19, 2013 12:01 PM
This post has been answered by sb92075 on Mar 19 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2013
Added on Mar 19 2013
5 comments
1,734 views