datepicker: fix keyboard nav in month/year views

setYear and setMonth return integer values (milliseconds from the epoch). `select` expects a Date object, so convert integers to Dates before passing them to `select`.