Use SimpleDateFormat or DateFormat form java.text package to format dates.
--jerry
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Carlos Santos
Sent: Monday, September 13, 1999 2:55 PM
To: [EMAIL PROTECTED]
Subject: Dates ?
Hi,
I've got this on one of my servlets:
Calendar calendar_aux = Calendar.getInstance();
out.println(calendar_aux.getTime().toString() + "<br>");
which returns
Mon Sep 13 12:54:21 GMT 1999
Is there an easy way to convert this to a mm/dd/yyyy format ?
Thanks and sorry for the newbie question.
Carlos.
-----------------------------------------------------
CARLOS SANTOS (ICQ: 21537583)
NETOSFERA: http://www.netosfera.pt
Tel(Phone): (+351 53 276998)
Fax: (+351 53 274255)
Braga - Portugal
___________________________________________________________________________
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