datepart function

Extract the day, month or year of a date in a dplyr pipeline