Enabling the selection of year and month in date picker