File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Unix timestamp to Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Unix timestamp to Date" Watch "Unix timestamp to Date" New topic

Unix timestamp to Date

Peter Tomas

Joined: Jul 12, 2001
Posts: 2
Author: osilekpl
Jul 12, 2001 7:16 AM

I need to convert Unix timestamp to Date I get this info from database and i need this int as a date 965914718
Can anybody help me how to convert this.
I need this ASAP.
thanx guys.
Anoop Krishnan
Ranch Hand

Joined: May 03, 2001
Posts: 163
Hai Peter
What about using the constructor
java.util.Date(long date)
Allocates a Date object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.

I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
I agree. Here's the link:
subject: Unix timestamp to Date
jQuery in Action, 3rd edition