public class CalendarUtil extends Object
Constructor and Description |
---|
CalendarUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getDateOfLastDayOfWeekInMonth(Calendar calendar,
int dayOfWeek) |
static int |
getLastDateOfMonth(Calendar calendar)
Returns the last date of the month represented by the passed
cal |
static Integer |
getNthDayOfMonth(Calendar cal,
int n,
int dayOfWeek) |
public static int getLastDateOfMonth(Calendar calendar)
cal
calendar
- The Calendar
whose Calendar.MONTH
field will be used
as the current monthpublic static int getDateOfLastDayOfWeekInMonth(Calendar calendar, int dayOfWeek)
Copyright © 2018 JBoss by Red Hat. All rights reserved.