Code example for DateFormatSymbols

Methods: getWeekdays

0
 
	private CalendarUtil() { 
	} 
 
	public static String getDayOfWeekName(final int dayNum) {
		String[] dayOfWeekNames = DATE_FORMAT_SYMBOLS.getWeekdays();
		return dayOfWeekNames[dayNum];
	} 
 
	public static String getShortDayOfWeekName(final int dayNum) {
		String[] dayOfWeekNames = DATE_FORMAT_SYMBOLS.getShortWeekdays();
		return dayOfWeekNames[dayNum];
	} 
 
	public static String getMonthName(final int monthNum) {
		String[] monthNames = DATE_FORMAT_SYMBOLS.getMonths();
		return monthNames[monthNum];
	} 
 
	public static boolean equalDays(final Calendar cal1, final Calendar cal2) {
Stop searching for code, let great code find you!  Add Codota to your java IDE