Changed attr to class when i get the fields of date range