Time.toGYearMonthString()

Returns an XMLSchema GYearMonth representation of this Time For Example, for the date US locale Mar 30, 2005, it returns "2005-03"