I have this number
20101213 which is a representation of this data 2010 Dec 13th I want to extract the year, month and day numbers from that nu
20101213
2010 Dec 13th
year <- as.numeric(substr(as.character(value),start = 1,stop = 4)) month <- as.numeric(substr(as.character(value),start = 5,stop = 6)) day <- as.numeric(substr(as.character(value),start = 7,stop = 8))