Class CalendarUtils


  • public class CalendarUtils
    extends Object
    Helps use Calendars.
    Since:
    3.10
    • Constructor Detail

      • CalendarUtils

        public CalendarUtils​(Calendar calendar)
        Creates an instance for the given Calendar.
        Parameters:
        calendar - A Calendar.
    • Method Detail

      • getDayOfMonth

        public int getDayOfMonth()
        Gets the current day of month.
        Returns:
        the current day of month.
      • getMonth

        public int getMonth()
        Gets the current month.
        Returns:
        the current month.
      • getYear

        public int getYear()
        Gets the current year.
        Returns:
        the current year.