getDisplayName
public String getDisplayName(int field, int style, Locale locale)
Returns the string representation of the calendar field value in the given style and locale. If no string representation is applicable, null is returned. This method calls get(field) to get the calendar field value if the string representation is applicable to the given calendar field.
For example, if this Calendar is a GregorianCalendar and its date is 2005-01-01, then the string representation of the MONTH field would be "January" in the long style in an English locale or "Jan" in the short style. However, no string representation would be available for the DAY_OF_MONTH field, and this method would return null.
The default implementation supports the calendar fields for which a DateFormatSymbols has names in the given locale.
Скорми методу 7 дат