in line 19th you tell java ho date is formatted. after that you can try and print date and month separately.
Yes but problem is that month should be display 12 because my string date = "22/12/2000"so why it is displaying 10 even i am not write month as 10 ??
[quote="SamSelenium":t3eevv8n]Yes but problem is that month should be display 12 because my string date = "22/12/2000"so why it is displaying 10 even i am not write month as 10 ??[/quote:t3eevv8n]
it is just giving a random number.
use this to get a month
http://stackoverflow.com/questions/9474121/i-want-to-get-year-month-day-etc-from-java-date-to-compare-with-gregorian-calen