Converting Date format from string to date

Hello all ,

I have wrote codes to convert date format from string to date. However format had changed and also dats are changed. It means 2016 dates changed by 2020 dates.
What is reason. How can I do it correctly.
Whould you please mention proper way and information.

Thanks
AI

I think we need to see your code and some sample data. See

FAQ Asking Questions

Just copy your code and paste it here between
```

```

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here between
```

```