Hey I have a column of birth dates in this format:
| dob |
|---|
| 19881011 |
| 19590223 |
| 19860407 |
| 19710921 |
| 19640213 |
I need to edit the column to this format:
| dob |
|---|
| 1988-10-11 |
| 1959-02-23 |
| 1986-04-07 |
| 1971-09-21 |
| 1964-02-13 |
I came across similar problems being solved with gsub and regex but was able to apply it to my problem. Can someone recommend a solution?