Converting string to date using R

210 Views Asked by At

How can I convert string"15081947" to a valid date format "1947-08-15" using R? enter image description here

1

There are 1 best solutions below

0
jakob-r On

Very handy is the lubridate package. There it would be e.g. dmy("15081947").