Correct handling and presentation of dates in datetimepicker.