added functions to get dates from datasets