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.

finding difference in days between two dates

user10636796Dec 18 2011 — edited Dec 19 2011
Hi, Everyone,

I am trying to find out the difference in days between two dates and the query i am passing is

SELECT TO_char(sysdate, 'dd/mm/yyyy')-TO_char('15/11/2011', 'dd/mm/yyyy') DAYS FROM DUAL

the error i am getting is

ORA-01722: invalid number
01722. 00000 - "invalid number"
*Cause:
*Action:

Could anybody please help.

Thanks in advance
This post has been answered by sb92075 on Dec 18 2011
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 16 2012
Added on Dec 18 2011
10 comments
255,443 views