In R, you may use the methods POSIXct() and format() to retrieve the year from a date. Here's an example of how to get the year from a date: POSIXct("02/03/2014 10:41:00", format = "percent m/ percent d/ percent Y percent H: percent M: percent S") and format(date, format="percent Y")