This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Originally posted by pradeep arum: DateFormat dfobj= DateFormat.getDateInstance();
From the JavaDocs for DateFormat, getInstance() with no parameters "gets the date formatter with the default formatting style for the default locale."
Therefore, your computer and JDK are not giving you a format of "MM/dd/yy HH:mm" or "dd/MM/yy HH:mm" (can't tell from your sample date which you expect). Most likely it is at least including the seconds part of the time. It could also be using a long format (spelled out month), for example.
If you want that format, specify it using something like