Fix value for datetimepicker and datepicker