Here is one line code to get current Date and Time java.text.DateFormat.getDateTimeInstance()).format(new java.util.Date())
--------- 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? ___________________________________________________________________________ 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