Forums Register Login

Unix timestamp to Date

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
A day job? In an office? My worst nightmare! Comfort me tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 719 times.
Similar Threads
How do i convert a Date object into a Timestamp object ?
DB2 Date format to Oracle Date format?
How to convert timeStamp into corresponding date.
How do i convert a Date object into a TimeStamp object
change data type from string to timestamp
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:05:32.