Class CalendarUtil


  • public class CalendarUtil
    extends Object
    CalendarUtil
    Version:
    $Revision: $
    Author:
    Jaikiran Pai
    • Constructor Detail

      • CalendarUtil

        public CalendarUtil()
    • Method Detail

      • getLastDateOfMonth

        public static int getLastDateOfMonth​(Calendar calendar)
        Returns the last date of the month represented by the passed cal
        Parameters:
        calendar - The Calendar whose Calendar.MONTH field will be used as the current month
        Returns:
      • getNthDayOfMonth

        public static Integer getNthDayOfMonth​(Calendar cal,
                                               int n,
                                               int dayOfWeek)
      • getDateOfLastDayOfWeekInMonth

        public static int getDateOfLastDayOfWeekInMonth​(Calendar calendar,
                                                        int dayOfWeek)