Converts dates and times into a year-month formatted string like '2011-12' or '1776-07'