update geting Date from input date field

Now the date is converted into a normal form or converted to an empty string
Merge pull request #164 from G-Grand/master

update geting Date from input date field