Day.Saturday

Updated on

Day.Saturday (6) is an enumeration that specifies a day of the week. It is a member of the Day.Type and represents Saturday.

Examples

// June 1st, 2023 is a Thursday
// Returns a day index of 5
= Date.DayOfWeek( #date( 2023, 6, 1 ), Day.Saturday)
= Date.DayOfWeek( #date( 2023, 6, 1 ), 6 )

// Friday as end of the week, returns #date( 2023, 6, 2 )
= Date.EndOfWeek( #date( 2023, 6, 1 ), Day.Saturday)
= Date.EndOfWeek( #date( 2023, 6, 1 ), 6 )

Other related enumerations are:

Applies to

Here’s a list of functions that work with Day.Type:

BI Gorilla Youtube Channel

Contribute » | Contributors: Rick de Groot