YUI recommends YUI 3.
YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.
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
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