date strings are now converted into date objects. TODO: check if datestring is empty