selectByDate function

Subset a data frame based on date