Day.Wednesday

Updated on

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

Examples

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

// Tuesday as end of the week, returns #date( 2023, 6, 6 )
= Date.EndOfWeek( #date( 2023, 6, 1 ), Day.Wednesday)
= Date.EndOfWeek( #date( 2023, 6, 1 ), 3 )

Other related enumerations are:

Applies to

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

Contribute » | Contributors: Rick de Groot