Or, if you're sure about the validity of source date, you can use a simple Regular Expression for conversion.
Using SimpleDateFormat lets you validate the input date. This is recommended if, say the source (input) date is a user input or read from a text file etc.