here when i am running the program, it gives me the output as "Correct Date" at step 1, when i give the format as dtFormattedDate = new SimpleDateFormat("MM/DD/YYYY"); then even if i enter the correct date for ex: 02/12/2005, even then it gives me the output saying Incorrect Format. I am not able to understand what does parse() doing. Also at step3, dtParsedDate displays wrong date. It doesn't print the input that i give
Can any one pl explain me about the parse() and the difference between the formats in "mm/dd/yyyy" and "MM/DD/YYYY" in step 1.