getDates function

Forms a subset of responses in data that contains their values for the nominated times