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