put corrent value in the value attribute for date fields