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!

Convert 3 digit input to Date format

TheManWhoSoldTheWorldJan 20 2016 — edited Jan 20 2016

Even though the business requirement states the input as a "julian" date, it is actually a 3 digit number being passed to the Oracle stored procedure. For example, if the input is '001' then I need to convert it to January1 of the current year or if it is 010 convert it to January 10 of the current year etc. How would i do that taking into consideration leap years too?

Please suggest. Thank you for your time.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 17 2016
Added on Jan 20 2016
4 comments
564 views