first-date-in-month
ErrorsCollection

first-date-in-month

Synthesised documentation from type/Date

From type/Date

See Original text in context

method first-date-in-month(Date:D: --> Date:D)

Returns the first date in the month of the Date object. Otherwise, returns the invocant if the day value is already the first day of the month.

say Date.new('2015-11-24').first-date-in-month# OUTPUT: «2015-11-01␤»