year_month function

Convert Date into Year-Month, Year-Quarter or Year-Week Format