Without looking it all up (maybe a bit wrong here). convert seconds into days (divide by 60 * 60 * 24) then use java.util.Date or GregorianCalendar to add that number of days to 1/1/1970. Then grapple with DateFormat objects!! I have some totally non-standard date code that I converted from VB after it was proved to me there was a nasty bug in java.util.Date. I can't remember exactly what the bug was but it made us ditch java dates straight away. I never saw it mentioned elsewhere but I guess you could assume there is no such bug now (or never was & we were mis-guided). You can have my code if you ask, wouldn't want to put it on this list - it's un-orthodox & might be held against me! I do believe you should write utility classes for validating/formatting dates so that enforce standards across your system. Then you can recode your date handling ad-nauseum. cheers - keith.
--- SUPRIYA MISRA <[EMAIL PROTECTED]> wrote: > If anyone has a ready made solution to convert an UNIX TIME of seconds > passed 1970 into java or oracle dates, please help. > The number I get is 1001091454 which seconds passed since Jan 1st 1970. > This needs to be converted to a valid oracle date. The answer will be a date > in 2001. > > > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Search the archive:- http://www.mail-archive.com/struts-user%40jakarta.apache.org/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Keith Bacon - Looking for struts work - South-East UK. phone UK 07960 011275 __________________________________________________ Do You Yahoo!? Try FREE Yahoo! Mail - the world's greatest free email! http://mail.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>