> in jsp how i get the date for print in web in the format XX-XX-XX?

Works just like any other java class:

java.util.GregorianCalendar cal    = new GregorianCalendar();
java.text.SimpleDateFormat  format = new SimpleDateFormat("mm-dd-yy");
String s = format(cal.getTime());

---
Michael Wentzel
Software Developer
<A HREF="http://www.aswethink.com">Software As We Think</A>
<A HREF="mailto:[EMAIL PROTECTED]">Michael Wentzel</A>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to