8 minutes read

This document is a draft version and subject to further review and revision. Please refrain from distributing or relying on its contents as final.

UI ElementDescription
addMinutesAdd the specified number of minutes to the given date
addMonthsAdd the specified number of months to the given date
addQuartersAdd the specified number of year quarters to the given date
addWeeksAdd the specified number of weeks to the given date
addYearsAdd the specified number of years to the given date
subBusinessDaysSubstract the specified number of business days (mon - fri) to the given date, ignoring weekends
subDaysSubtract the specified number of days from the given date
subHoursSubtract the specified number of hours from the given date
subMinutesSubtract the specified number of minutes from the given date
subMonthsSubtract the specified number of months from the given date
subQuartersSubtract the specified number of year quarters from the given date
subWeeksSubtract the specified number of weeks from the given date
getDateGet the day of the month of the given date
getDayGet the day of the week of the given date
getDayOfYearGet the day of the year of the given date
getDaysInMonthGet the number of days in a month of the given date
getDaysInYearGet the number of days in a year of the given date
getDecadeGet the decade of the given date
getHoursGet the hours of the given date
getMinutesGet the minutes of the given date
getMonthGet the month of the given date
getQuarterGet the year quarter of the given date
getTimeGet the milliseconds timestamp of the given date.
getWeekGet the local week index of the given date
getWeekOfMonthGet the week of the month of the given date
getWeekYearGet the local week-numbering year of the given date
getWeeksInMonthGet the number of calendar weeks a month spans
getYearGet the year of the given date
differenceInBusinessDaysGet the number of business days between the given dates
differenceInCalendarMonthsGet the number of calendar months between the given dates
differenceInCalendarQuartersGet the number of calendar quarters between the given dates
differenceInCalendarYearsGet the number of calendar years between the given dates
differenceInDaysGet the number of full days between the given dates
differenceInHoursGet the number of hours between the given dates
differenceInMinutesGet the number of minutes between the given dates
differenceInMonthsGet the number of full months between the given dates
differenceInQuartersGet the number of quarters between the given dates
differenceInWeeksGet the number of full weeks between two dates.
differenceInYearsGet the number of full years between the given dates
setDateSet the day of the month to the given date
setDaySet the day of the week to the given date
setDayOfYearSet the day of the year to the given date
setHoursSet the hours to the given date
setMinutesSet the minutes to the given date
setMonthSet the month to the given date
setQuarterSet the year quarter to the given date
setWeekSet the local week to the given date, saving the weekday number
setYearSet the year to the given date
isFirstDayOfMonthIs the given date the first day of a month?
isFridayIs the given date Friday?
isLastDayOfMonthIs the given date the last day of a month?
isLeapYearIs the given date in the leap year?
isMondayIs the given date Monday?
isSameMonthAre the given dates in the same month (and year)?
isSameQuarterAre the given dates in the same quarter (and year)?
isSameWeekAre the given dates in the same week (and month and year)?
isSameYearAre the given dates in the same year?
isSaturdayIs the given date Saturday?
isSundayIs the given date Sunday?
isThisMonthIs the given date in the same month as the current date?
isThisQuarterIs the given date in the same quarter as the current date?
isThisWeekIs the given date in the same week as the current date?
isThisYearIs the given date in the same year as the current date?
isThursdayIs the given date Thursday?
isTodayIs the given date today?
isTomorrowIs the given date tomorrow?
isTuesdayIs the given date Tuesday?
isWednesdayIs the given date Wednesday?
isWeekendDoes the given date fall on a weekend?
isYesterdayIs the given date yesterday?
startOfDecadeReturn the start of a decade for the given date
startOfMonthReturn the start of a month for the given date. The result will be in the local timezone
startOfQuarterReturn the start of a year quarter for the given date. The result will be in the local timezone
startOfWeekReturn the start of a week for the given date. The result will be in the local timezone
startOfWeekYearReturn the start of a local week-numbering year for the given date.
startOfYearReturn the start of a year for the given date. The result will be in the local timezone
eachWeekendOfYearGet all the Saturdays and Sundays in the year
endOfDecadeReturn the end of a decade for the given date
endOfMonthReturn the end of a month for the given date. The result will be in the local timezone.
endOfQuarterReturn the end of a year quarter for the given date. The result will be in the local timezone
endOfWeekReturn the end of a week for the given date. The result will be in the local timezone
endOfYearReturn the end of a year for the given date. The result will be in the local timezone
lastDayOfDecadeReturn the last day of a decade for the given date
lastDayOfMonthReturn the last day of a month for the given date. The result will be in the local timezone
lastDayOfQuarterReturn the last day of a year quarter for the given date. The result will be in the local timezone
lastDayOfWeekReturn the last day of a week for the given date. The result will be in the local timezone
lastDayOfYearReturn the last day of a year for the given date. The result will be in the local timezone
current_dateReturn the current date
current_timeReturn the current time