The format already is giving you date if you want it in another format use Calendar class
If you want some thing like 22/5/2010 .
or anything else
The date is already in the IST form .
If you want some one to enter the string and than you want to format the part user entered
Use a method
Edit: Also the String which you are going to parse in to Date should be in the required format other wise it will throw ParseException. For example- You have a String in- 10-11-2010 format and then try to parse it to- Tue Nov 02 00:00:00 IST 2010 will result in an exception.