Skip to main content

Status

Common

  • isEqual
  • isBefore
  • isAfter
  • isFuture
  • isPast
  • compareAsc
  • compareDesc
  • max
  • min
  • closestTo
  • closestIndexTo
  • isValid

Conversion

  • daysToWeeks
  • hoursToMilliseconds
  • hoursToMinutes
  • hoursToSeconds
  • millisecondsToHours
  • millisecondsToMinutes
  • millisecondsToSeconds
  • minutesToHours
  • minutesToMilliseconds
  • minutesToSeconds
  • monthsToQuarters
  • monthsToYears
  • quartersToMonths
  • quartersToYears
  • secondsToHours
  • secondsToMilliseconds
  • secondsToMinutes
  • weeksToDays
  • yearsToMonths
  • yearsToQuarters

Interval

  • isWithinInterval
  • areIntervalsOverlapping
  • getOverlappingDaysInIntervals
  • eachDayOfInterval
  • eachHourOfInterval
  • eachMinuteOfInterval
  • eachMonthOfInterval
  • eachQuarterOfInterval
  • eachWeekOfInterval
  • eachWeekendOfInterval
  • eachYearOfInterval

Millisecond

  • addMilliseconds
  • differenceInMilliseconds
  • getMilliseconds
  • milliseconds
  • setMilliseconds
  • subMilliseconds

Second

  • addSeconds
  • subSeconds
  • differenceInSeconds
  • startOfSecond
  • endOfSecond
  • isSameSecond
  • isThisSecond
  • getSeconds
  • setSeconds

Minute

  • addMinutes
  • subMinutes
  • differenceInMinutes
  • startOfMinute
  • endOfMinute
  • isSameMinute
  • isThisMinute
  • roundToNearestMinute
  • getMinutes
  • setMinutes

Hour

  • addHours
  • subHours
  • differenceInHours
  • startOfHour
  • endOfHour
  • isSameHour
  • isThisHour
  • getHours
  • setHours

Day

  • addBusinessDays
  • addDays
  • subDays
  • differenceInBusinessDays
  • differenceInDays
  • differenceInCalendarDays
  • startOfDay
  • endOfDay
  • endOfToday
  • endOfTomorrow
  • endOfYesterday
  • getDayOfYear
  • setDayOfYear
  • isSameDay
  • isToday
  • isTomorrow
  • isYesterday
  • getDate
  • setDate

Week

  • addWeeks
  • subWeeks
  • differenceInWeeks
  • differenceInCalendarWeeks
  • startOfWeek
  • endOfWeek
  • isSameWeek
  • isThisWeek
  • lastDayOfWeek
  • getWeek
  • getWeekOfMonth
  • getWeeksInMonth
  • setWeek

Week numbering

  • getWeekYear
  • setWeekYear
  • startOfWeekYear

Weekday

  • getDay
  • getISODay
  • isMonday
  • isTuesday
  • isWednesday
  • isThursday
  • isFriday
  • isSaturday
  • isSunday
  • isWeekend
  • setDay
  • setISODay

Month

  • addMonths
  • subMonths
  • differenceInMonths
  • differenceInCalendarMonths
  • startOfMonth
  • endOfMonth
  • getDaysInMonth
  • isFirstDayOfMonth
  • isLastDayOfMonth
  • isSameMonth
  • isThisMonth
  • lastDayOfMonth
  • getMonth
  • setMonth
  • eachWeekendOfMonth

Quarter

  • addQuarters
  • differenceInCalendarQuarters
  • differenceInQuarters
  • endOfQuarter
  • isSameQuarter
  • isThisQuarter
  • lastDayOfQuarter
  • startOfQuarter
  • setQuarter
  • subQuarters

Year

  • addYears
  • subYears
  • differenceInYears
  • differenceInCalendarYears
  • startOfYear
  • endOfYear
  • getDaysInYear
  • isLeapYear
  • isSameYear
  • lastMonthOfYear
  • lastDayOfYear
  • getYear
  • setYear
  • eachWeekendOfYear

Decade

  • getDecade
  • startOfDecade
  • endOfDecade
  • lastDayOfDecade

ISO week

  • endOfISOWeek
  • getISOWeek
  • isSameISOWeek
  • isThisISOWeek
  • lastDayOfISOWeek
  • setISOWeek
  • startOfISOWeek
  • differenceInCalendarISOWeeks

ISO week numbering

  • addISOWeekYears
  • differenceInCalendarISOWeekYears
  • differenceInISOWeekYears
  • endOfISOWeekYear
  • getISOWeeksInYear
  • getISOWeekYear
  • isSameISOWeekYear
  • isThisISOWeekYear
  • lastDayOfISOWeekYear
  • setISOWeekYear
  • startOfISOWeekYear
  • subISOWeekYears