Datepicker: Code review