Constructors
Date()
Date(Date)
Date(String)
Methods
toString()
Converts a date value to its string representation, in ISO format.One of the most frequently used methods, typically when you are going to output something.
addDay(Integer)
Adjusts the currently set date with the given number of days. The original object will be modified, and a copy is returned.If the number is negative, the days are subtracted.
addMonth(Integer)
Adjusts the currently set date with the given number of months.The day remains unchanged regardless of the number of days in the months added or subtracted. However, if the update would result in February 29th in a year that is not a leap year, CRMScript automatically corrects it to March 1st.
addYear(Integer)
Adjusts the currently set date with the given number of years.The original object will be modified, and a copy is returned.
getMDay()
Returns the day of the month as an Integer [1-31].getMonth()
Returns the month as an Integer [1-12].getWeek()
Returns the ISO number of the week as an Integer [1-53].See http://en.wikipedia.org/wiki/ISO_8601 for detailed info on ISO week numbers.
getWeekDay()
Returns the ISO day of the week as an Integer [0-6].The 1st day of the week is Monday and has index 0!
getYear()
Returns the year as an Integer.isNull()
Returns true if it has no value and false if it does.A NULL/NUL/NIL Date is different from zero, in that it is conceptually without a value.