Hi,

This is a bit long-winded but seems to work:

<%
SimpleDateFormat oradf = new SimpleDateFormat("dd/MMM/yyyy hh:mm:ss");
SimpleDateFormat newdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
String oraDate = "01/JUL/2000 14:17:21";
Date dt = oradf.parse(oraDate);
String myDate = newdf.format(dt);
%>
<%= myDate %>

Change the format of newdf to whatever format you want.

Malc.

-----Original Message-----
From: subramanian Athimoolam [mailto:[EMAIL PROTECTED]]
Sent: 03 August 2000 13:57
To: [EMAIL PROTECTED]
Subject: Re: date formate fectching??dd/mm/yyyyy


hi  fine. but i am retriving the date from oracle database. then onlyu give
the problem. what can i do.

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


***************************************************************
The contents of this Email and any files transmitted with it
are confidential and intended solely for the use of the
individual or entity to whom it is addressed. The views stated
herein do not necessarily represent the view of the company.
If you are not the intended recipient of this Email you may not
copy, forward, disclose or otherwise use it or any part of it
in any form whatsoever. If you have received this mail in
error please Email the sender.
***************************************************************

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to