If 2010-12-15 is in cell A 1, that is, in cell B 1- 12, enter =left(A 1, 7).
In view of the fact that the month in the date has one digit and two digits, and the text is required, the text (A 1, "yyyy-mm") is used.