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!

Comparing dates in oracle

3198080May 26 2017 — edited May 26 2017

Hi all,

I need to compare two dates. One is the system date. The other one is a user input.

But,when I try to run the following query, the output is wrong.

SELECT TO_DATE(SYSDATE,'DD-MM-YYYY') FROM DUAL;

The output of this is coming as 'DD-MON-YYYY', not as 'DD-MM-YYYY'.

Is this a known issue or what?

Please guide me in-order to compare following date with the system date.

2017-05-25 - Input date

Thanks.

This post has been answered by Gaz in Oz on May 26 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2017
Added on May 26 2017
7 comments
6,948 views