Try This:

<%@ page contentType="text/html;charset=WINDOWS-1252" import="java.text.*"%>
<%
SimpleDateFormat df = new SimpleDateFormat("dd/MMM/yyyy hh:mm:ss");
java.util.Date d = new java.util.Date();
String myDate = df.format(d);
%>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
<TITLE>
Date Format
</TITLE>
</HEAD>
<BODY>
<H2><%= myDate %></H2>
</BODY>
</HTML>



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


hi

how can i fetch date formate like mm/dd/yy
in jsp page.
here i am using java.util.date df=rs.getDate(1);

it will be displaying 2000-08-03

i want to display 03-08-2000

how can i do it
thanks

[ in oracle to_char('df','dd/mm/yyyy ') its working but how can i implement
in jsp??  ]

subu


________________________________________________________________________
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