You could use: java.sql.Timestamp = new java.sql.Timestamp(long time);
Med Venlig Hilsen / Regards Christian Petersen Lead Programmer, Partner Ipeople Aps Vester Voldgade 87, 4, DK-1552 Copenhagen Streaming Media Partner . Advanced Web Development . Graphics Design ------------------------------------------------------------------------ ---- Contact : [EMAIL PROTECTED] On wwweb : www.ipeople.dk / www.mediastream.dk ------------------------------------------------------------------------ ---- Phone :+101101 10000001011011101101010101|+3^2*5 3*11310023 |(+4533930069) Mobile:+101101 1011010000101011110100110 |+3^2*5 2*37*319127 |(+4523615398) ------------------------------------------------------------------------ ---- -----Oprindelig meddelelse----- Fra: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]] På vegne af Anders Jørvad (RWDK) Sendt: 19. september 2002 12:04 Til: [EMAIL PROTECTED] Emne: System.currentTimeMillis() Hi all. have a table in my database where i register the time of creation for a record. This field is set = System.currentTimeMillis() Now when the user gets the record displayed in he browser he gets af lagre number for display. I want to convert the number into the time and date for creation, but can't find a method for doing so i have tryed to use date() and time() but without any look??????? Regards Anders ________________________________________________________________________ ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html