Fixed startdate bug in dataRetrieval.