Fix datepicker format and usage