Fix datepicker to use the value of input field.
Fix datepicker to use localized date on postgresql.