I have tried a number of methods to no avail. I have data in terms of a date (YYYY-MM-DD) and am trying to get in terms of just the month and year, such as: MM-YYYY or YYYY-
Use substring?
d = "2004-02-06" substr(d,0,7) >"2004-02"