date:day-of-week-in-month

Returns the day-of-the-week in a month of a date as a number (e.g. 3 for the 3rd Tuesday in May). If no argument is given, then the current local date/time, as returned by date:date-time is used as the default argument.

day-of-week-in-month($date-time as string?) ➔ number

Arguments

 

$date-time

string?

The input date/time

Result

number

Namespace

http://exslt.org/dates-and-times

Links to specifications

EXSLT Dates and Times Module