SimpleDateformatproblem.
Hi all,
i have a requirement where users has to enter the date in MM/DD/YYYY
format.So i have below statement
SimpleDateFormat format1 = new SimpleDateFormat("MM/DD/YYYY");
But even when i enter it date in 'MM/DD/YY' (09/09/06) it is parsing and not at all throwing an exception.
My requirement is when ever user enters date it has to compare with the format "MM/DD/YYYY" and if it is not maching it has to throw the exception.So I am wondering how to compare a date entered like 07/09/06(MM/DD/YY) with our required format "MM/DD/YYYY".

