DateTimeOptions

DateTimeOptions ( dateOrder ;​ weekStartingDay )

Argument Type Range Default Note
dateOrder int 1..3 mdy Month-day-year
weekStartingDay int 1..7 1 1...Sunday
Examples

DateTimeOptions(ymd) /* Year-month-day */

DateTimeOptions(mdy;​1) /* US date format. */

DateTimeOptions(;​2) /* Calendar week starts on Monday (ISO 8601) */

Description

The first argument dateOrder can be used to define the order of day, month and year when entering the date. The second argument weekStartingDay can be used to specify the beginning of the calendar week using a value between 1 and 7, i.e. 1=Sunday (default), 2=Monday, 3=Tuesday, etc. For more details, refer to Date & Time.

Scroll to Top