◷ Reading Time: 3 minutes
now
now ()Returns the DMNDateTime object which includes date,day, time offset, timezone and time(including seconds).
Example: now() Result: 2024-05-22T09:14:07.6477600+10:00
today
today ()Returns the DMNDate object which includes today’s date and day.
Example: today()
Result: 2024-05-22
day of week
day of week (date)- date (Mandatory): Could be a date or date and time.
Returns the day of the week according to the Gregorian calendar enumeration: ex: “Monday”,
“Tuesday”, “Wednesday”, Thursday”, “Friday”, Saturday”, “Sunday
Example: day of week( date(2019, 9, 17)) Result: "Tuesday"
month of year
month of year (date)- date (Mandatory): Could be a date or date and time.
Returns the month of the year according to the Gregorian calendar enumeration: ex: “January”, “February”,
Example: month of year( date(2019,9,17) ) Result: "September"
week of year
week of year (date)- date (Mandatory): Could be a date or date and time.
Returns the Gregorian number of the week within the year, accordingly to ISO 8601.
The ISO 8601 rule is: The first week of the year is the week containing the first Thursday.
So if January 1 falls on a Friday, it belongs to the last week of the previous year. If December 31 falls on a Wednesday, it belongs to week 01 of the following year.
Example: week of year( date(2019, 9,17) ) Result: 38
Example: week of year( date(2005, 1,1)) Result: 53
day of year
day of year (date)- date (Mandatory): Could be a date or date and time.
Returns the Gregorian number of the day within the year
Example: day of year( date(2019,9,17) ) Result: 260