updating helper for datepicker field