why dont u use java.text.SimpleDateFormat. With this you can use any kind of
format.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-----Original Message-----
From: Next Step [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 11:37 PM
To: [EMAIL PROTECTED]
Subject: Display format


Hi all,

Is there any "builtin" methode to format date, similar to formatdatetime()
in asp?
I have date variable which obtain from sql server, the format is
"2002-03-27 00:00:00" which i want to display to "27 march 2002" or
"27-03-2002".
Im currently learning jsp and want to do everything "manually" without tag
lib etc.

Also what is the similar method to translate "/images" to "c:\web\images"
to make the code portable?

TIA.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to