Change Week Days Format
This Example shows you how to change week days format. In the code given below we are change week days format.Methods used in this example are described below :
DateFormatSymbols() : DateFormatSymbols class object used for formatting localizable date-time. It format the months name and days name.
DateFormatSymbols.getShortWeekdays() : getShortWeekdays method returns a string type array and this array have shorted weekdays, For example: "Sun", "Mon", "Tue" etc.
DateFormatSymbols.setShortWeekdays() : setShortWeekdays method is used to set weekday in short format, For example: "Sun", "Mon", etc.
ChangeWeekDays.java
|
Output : Output :
Sun Mon Tue Wed Thu Fri Sat
|
Download code Download code