Fix date handling for year month and month day