Dates don't have formats. They are just values representing a date. The stuff you are talking about is the formatted string representation of a date value. For that you'd make proper usage of the SimpleDateFormat class. I assume you know how to look up that class in the Javadoc and read it.