Java DateFormat class provides predefined ways to parse and format dates for any locale. This example demonstrates the defaults provided.
Default
DateFormat.DEFAULT should result in a format of Oct 21, 2013.
Output
Short
DateFormat.SHORT should result in a format of 10/21/13.
Output
Medium
DateFormat.MEDIUM should result in a format of Oct 21, 2013.
Output
Long
DateFormat.LONG should result in a format of October 21, 2013.
Output
Full
DateFormat.LONG should result in a format of Monday, October 21, 2013.
Output