Date
add
(
date
,
field
,
amount
)
date <Date>
The JavaScript Date object to perform addition on
field <String>
The field constant to be used for performing addition.
amount <Number>
The number of units (measured in the field constant) to add to the date.
Date
Boolean
after
(
date
,
compareTo
)
date <Date>
The Date object to compare with the compare argument
compareTo <Date>
The Date object to use for the comparison
Boolean
Boolean
before
(
date
,
compareTo
)
date <Date>
The Date object to compare with the compare argument
compareTo <Date>
The Date object to use for the comparison
Boolean
Boolean
between
(
date
,
dateBegin
,
dateEnd
)
date <Date>
The date to check for
dateBegin <Date>
The start of the range
dateEnd <Date>
The end of the range
Boolean
Date
clearTime
(
date
)
date <Date>
The JavaScript Date for which the time fields will be cleared
Date
Date
findMonthEnd
(
date
)
date <Date>
The JavaScript Date used to calculate the month end
Date
Date
findMonthStart
(
date
)
date <Date>
The JavaScript Date used to calculate the month start
Date
Date
getDate
(
y
,
m
,
d
)
NOTE:Validation on argument values is not performed. It is the caller's responsibility to ensure arguments are valid as per the ECMAScript-262 Date object specification for the new Date(year, month[, date]) constructor.
y <Number>
Year.
m <Number>
Month index from 0 (Jan) to 11 (Dec).
d <Number>
(optional) Date from 1 to 31. If not provided, defaults to 1.
Date
Number
getDayOffset
(
date
,
calendarYear
)
date <Date>
The JavaScript date for which to find the offset
calendarYear <Number>
The calendar year to use for determining the offset
Number
Date
getJan1
(
calendarYear
)
calendarYear <Number>
The calendar year for which to retrieve January 1
Date
Number
getWeekNumber
(
date
,
calendarYear
)
date <Date>
The JavaScript date for which to find the week number
calendarYear <Number>
OPTIONAL - The calendar year to use for determining the week number. Default is
the calendar year of parameter "date".
Number
Boolean
isMonthOverlapWeek
(
weekBeginDate
)
weekBeginDate <Date>
The JavaScript Date representing the first day of the week.
Boolean
Boolean
isYearOverlapWeek
(
weekBeginDate
)
weekBeginDate <Date>
The JavaScript Date representing the first day of the week.
Boolean
Date
subtract
(
date
,
field
,
amount
)
date <Date>
The JavaScript Date object to perform subtraction on
field <Number>
The this field constant to be used for performing subtraction.
amount <Number>
The number of units (measured in the field constant) to subtract from the date.
Date