To get the year from a date in R you can use the functions as.POSIXct() and format(). For example, here's how to extract the year from a date: 1) date <- as.POSIXct("02/03/2014 10:41:00", format = "%m/%d/%Y %H:%M:%S), and 2) format(date, format="%Y"). Now, you know how to use R to extract year from date. Read on for a more detailed explanation.