I have a form with credit card's expiration date as two select menu's: one for Year and one for Month. I'd like to bind these values to a Date object in my model (and set its Day to 1).
Date.setMonth() is deprecated, so I probably shouldn't use this:
but is there another way to do it? Examples or suggestions are much appreciated!