aspose file tools*
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
Author

Unix timestamp to Date

Peter Tomas
Greenhorn

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Unix timestamp to Date
 
Similar Threads
How to convert timeStamp into corresponding date.
How do i convert a Date object into a Timestamp object ?
DB2 Date format to Oracle Date format?
How do i convert a Date object into a TimeStamp object
change data type from string to timestamp