File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes Oracle 6 digit date ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Oracle 6 digit date ?" Watch "Oracle 6 digit date ?" New topic

Oracle 6 digit date ?

James Clarke
Ranch Hand

Joined: Oct 04, 2004
Posts: 148

I came accross a date format defined as number(6,0) used in a JD Edwards database.

A number such as 104147 is apparently year 2004, 147th year...

Does Oracle 8i have a function that can convert this to date type ?

thanks in advance,

Chris Hendy
Ranch Hand

Joined: Mar 04, 2006
Posts: 98
No, you would have to write your own.

By the way, do you not mean 104147 is year 2004, 147th day?

If so, you would do something like


where v_jd_date is your JD Edwards date-as-a-number

[ November 11, 2006: Message edited by: Chris Hendy ]
[ November 11, 2006: Message edited by: Chris Hendy ]
I agree. Here's the link:
subject: Oracle 6 digit date ?
It's not a secret anymore!