R contains a Date class, which is created with as.Date(), which takes a string or vector of strings, and if the date is not in ISO 8601 date format YYYY-MM-DD, a formatting string of strptime-style tokens.
as.Date('2016-08-01') # in ISO format, so does not require formatting string
## [1] "...