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!

To get Yesterday's date

627574Feb 28 2011 — edited Feb 28 2011
Hi,

Can anyone please help me out here..

I am getting current date into one variable using the below code.

set CurrentDateTime=%DATE%

Now I need to get yesterday's date into YDate, how can I get this ?
One way is that breaking the date and reducing by 1, but then I need to handle months and years which is a cumbersome.

Thanks in advance
This post has been answered by MichaelS on Feb 28 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2011
Added on Feb 28 2011
9 comments
6,999 views