Format input value on datepicker initialization

Re-format input value only if there is a value