Date Arithmetic in Oracle

Back to blogging again. After a very loooooong gap. This post details on how you can get another date of the week, given a date. For example, you have a source date to be 6-July-2012, and you want the following Monday’s date, you can use the following code snippet and it works wonders!

SELECT SYSDATE, NEXT_DAY(SYSDATE,'MONDAY')

Have fun, folks! 🙂

Advertisements

About Manikandan Surendren

A PeopleSoft Techno-functional Consultant. An engineering graduate in Computer Science. Technology Enthusiast. Movie freak. Gadget geek.
This entry was posted in Oracle, SQL. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s