Converting long value column into date using sql query itself. Oracle, 9i

In oracle db I have a column with integer data type, the actual content is milliseconds of date. I required a sql query which converts those milliseconds value into date value. For example, the value in the column is 1225825655, and required value should be in the form of 'mm/dd/yyyy'. I going to use this query in the iReport, so the modification is required in the query itself.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

what are the milliseconds in reference to?  They must be a counter from some point in time

Assuming the standard "epoch" of 1970-01-01 00:00:00

TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + 1225825655 / 86400000, 'mm/dd/yyyy')

If Jan 1, 1970 is not your base, then substitute whatever date is your base time you count from.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
are you sure your counter is in milliseconds?

1225825655  would only be January 15, 1970

if you counter is in seconds then 1225825655  would be November 4, 2008.

again, assuming Jan 1, 1970 as your base date
so, if your counter is actually seconds rather than milliseconds then use

TO_CHAR(TO_DATE('1970-01-01', 'yyyy-mm-dd') + 1225825655 / 86400, 'mm/dd/yyyy')
jayaprakashkgAuthor Commented:
Hi sdstuber,
You are correct the values are in seconds,  I used the divide by 86400.
Why the penalty B?  If you needed further help you only needed to ask.

Please don't assign penalties without giving the volunteers (not just me) a chance to complete your answer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.