Built-In Object Type: Date

Inherits All
(MORE DESCRIPTION TO COME.)
Members:
NameWritableDescription
monthName noThe name of the month.
shortMonthName noThe short name of the month.
weekDayName noThe name of the day in the week.
shortWeekDayName noThe short name of the day in the week.
isAM noThe boolean value indicating morning.
isPM noThe boolean value indicating afternoon.
epoch yesThe Epoch.
year yesThe year.
month yesThe month, starting at 1.
day
date
yesThe day, starting at 1.
hour yesThe hour.
minute yesThe minute.
second yesThe second.
milliSecond yesThe milliSecond.
zoneOffset yesThe time zone offset.
dstOffset yesThe DST offset.
weekOfYear noThe week of the year, starting at 1.
weekOfYear noThe week of the year, starting at 1.
weekOfMonth noThe week of the month, starting at 1.
dayOfMonth noThe day of the month, starting at 1.
dayOfYear noThe day of the year, starting at 1.
dayOfWeek noThe day of the week, starting at 1.
dayOfWeekInMonth noThe day of week in the month, such as 'the first Tuesday'.
Methods:
NameArgumentsDescription
after
datetime
Returns true if this date object is after datetime. If no datetime specified, compare to the current date.
before
datetime
Returns true if this date object is before datetime. If no datetime specified, compare to the current date.
formatDate
fmtDate
format
timezone
Returns a string representing this date object in format and timezone, if specified.
getTime
  Returns the integer value of this date/time object.
next
period
Returns a new date object that is for the next period, which can be 'year', 'month', 'day', 'hour', 'minute' and 'second'.
setTime
datetime
Sets the time value to datetime. If no datetime specified, set to current time.