In Date§
See primary documentation in context for method first-date-in-month.
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»