DatePicker trimming