splitByDate function

Divide up a data frame by time