update geting Date from input date field

Now the date is converted into a normal form or converted to an empty string