Dear arun,
I think there is no way to validate it. You may have to make the user enter
in a particular format (ie MM/dd/yyyy or dd/mm/yyyy).
Or use drop down in the form to selct the day and month.
rgds
sujith





>From: "Arun M. Thomas" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: How To Validate Date Format Using Java
>Date: Wed, 21 Jun 2000 13:41:28 -0700
>
>This is just about impossible to do....
>
>Consider that there are valid dates where the month and day fields can
>be switched and still leave valid dates. For example:
>
>         mm/dd/yyyy - 01/09/1974 - Jan 9 1974
>         dd/mm/yyyy - 01/09/1974 - Sept 1 1974
>
>Both of these are valid dates, and there will be no way to distinguish
>between them.
>
>-AMT
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of tppal
> > Sent: Tuesday, June 20, 2000 9:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: How To Validate Date Format Using Java
> >
> >
> > I need to validate this date format using format dd/mm/yyyy. If user
>input
> > other date format eg mm/dd/yyyy or yyyy-mm-dd, it's will automatically
> > convert to dd/mm/yyyy. How to do it?
> >
> > ==================================================================
> > =========
> > 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
> >
>
>===========================================================================
>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

________________________________________________________________________
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

Reply via email to