This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
vinayak jog, there are two things wrong with your code:
1) mm does not print out the month but the minute.
2) format will only throw a NullPointerException so you shouldn't surround it with a try-catch block. It's completely unnecessary. It's the parse method that can throw a ParseException.