String timestamp = new Timestamp( System.currentTimeMillis).toString(); Mark
-----Original Message----- From: Falls, Travis D (CASD, IT) [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:31 PM To: [EMAIL PROTECTED] Subject: Dates in java I am trying to get the current date and time and return it in as string. I know I have to use Calendar.getInstance() and java.text.DateFormat. Any one have any sample code to do this? This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. ___________________________________________________________________________ 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