weekday-of-month
ErrorsCollection

weekday-of-month

Synthesised documentation from type/Dateish

From type/Dateish

See Original text in context

method weekday-of-month(Date:D: --> Int:D)

Returns a number (1..5) indicating the number of times a particular day-of-week has occurred so far during that month, the day itself included.

say Date.new("2003-06-09").weekday-of-month;  # 2  (second Monday of the month)