You could use this method from java.text.SimpleDateFormat class:
        set2DigitYearStart(Date startDate)

Bye,

Leila


> -----Urspr�ngliche Nachricht-----
> Von: Dharmendra Yadav [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 22. November 2000 00:56
> An: [EMAIL PROTECTED]
> Betreff: Java : SimpleDateFormat problem
>
>
> I'm writing a date validation and formatting class used in my servlet.
>
> When I input 12/12/00 program gives  12 , December ,2000
> but when I input 12/12/00  the answer is   12, December ,0001
> This problem is only with abbreviated date pattern.
> can somebody tell me why ?
>
> I'm using  java.text.SimpleDateFormat instance.
>
>
> thanks guys..
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
> http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to