If you do want to use the gYearMonth data type, you can write your own function f:format-gYearMonth which converts the value to a date: xs:date(concat($gYM, '-00'))
That should be '-01' of course. MK