toString

public static String toString(DayOfWeek value)

Obtains string representation of the passed day of week.

Returned string is an internal representation, and should not be used in the user interface.

For displaying a day of week, please use java.time.DayOfWeek.getDisplayName(TextStyle, Locale).

See also