On 14/12/2021 12:54, Luigi Marongiu wrote:
Hello,
I have these kind of dates:
```
ori[[n[3]]]
they look to me as month, date, year so I formatted them as:
```
Looks like that to me also.
as.Date(ori[[n[3]]], format = "%D")
# or: as.Date(ori[[n[3]]], format = "%d/%m/%y")
But you format as day, month, yr, not what you suggested.
Try: format = "%m/%d/%Y"
--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.