I need to get the first and last day of a month in the format YYYY-MM-DD given only the month and year. Is there a good, easy way to do this?
The first day of the month is always 1. So it will become
YYYY-MM-01
the last day can be calculated as: