fixes date fields in forms