convert long to date

Hello,can someone help me how to convert long to date? Thanks a lot!
[82 byte] By [Traxx77a] at [2007-11-26 21:52:05]
# 1

What does your long value represents ?

In case it represents the number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT, then you can use the corresponding [url=http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html#Date(long)]Date[/url] constructor.

TimTheEnchantora at 2007-7-10 3:45:47 > top of Java-index,Java Essentials,Java Programming...
# 2
long myLong = System.currentTimeMillis();//date in millisecondsDate date = new Date(myLong);
java_2006a at 2007-7-10 3:45:47 > top of Java-index,Java Essentials,Java Programming...
# 3
Thank you!!
Traxx77a at 2007-7-10 3:45:47 > top of Java-index,Java Essentials,Java Programming...