As far as I'm aware, most databases require the day of the month as part of the date. However, you can retrieve just the month and the year if that's all you need.
If I am using just the month and year, I always set the day to 1 (i.e. 01-mm-yyyy for whatever mm and yyyy) in the database, and then disregard the 01 after retrieving the date.
Hope this helps.