Create, Compete & Win at Redbrick Connect 2024! 🎉

DateUtils

A module that provides functions dealing with date and time. It can be used as DateUtils.getYear().

.getYear()

Returns the local time base year.

.getMonth()

Returns the month based on local time. Returned as a number value, starting with 0.

ex) January = 0, March = 2

.getDate()

Returns the local time base day.

.getDay()

Returns the local time base day. Returns the number value and starts Sunday with zero.

ex) Sunday = 0, Saturday = 6

.getHours()

Returns the hour at this point in time.

.getMinutes()

Returns the minutes at this point in time.

.getSeconds()

Returns the number of seconds at this point in time.