Fixed issues around date selection.