Look at the class - java.text.DateFormat
You should be able to get the output date format the way u want. Thanks sanjib --- Hans Bergsten <[EMAIL PROTECTED]> wrote: > Troy Campano wrote: > > > Hello I'm a former ASP web programmer. In ASP > there is a function > > called cdate(). The CDate function converts any > valid date and time > > expression to the variant of subtype DATE. > > > > For example: > > > > <% anydate = "June 26, 1943" %> > > <% =CDate(anydate) %> > > > > > > Would output: > > > > 6/26/43 > > > > It basically converted all imaginable date formats > into one standard > > format. > > Does anyone know of a function similar to this is > JSP/Java?????? > > > I suggest that you take a look at how this is > handled in the > upcoming JSP Standard Tag Library (JSTL), more > specifically by > the I18N actions for parsing and formatting date > information: > > > <http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html> > > Hans > -- > Hans Bergsten [EMAIL PROTECTED] > Gefion Software > http://www.gefionsoftware.com > JavaServer Pages http://TheJSPBook.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 __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.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
