[R] Format dates issues with R
t@v|b@r @end|ng |rom gm@||@com
Tue Dec 14 12:05:00 CET 2021
On 14/12/2021 12:54, Luigi Marongiu wrote:
> I have these kind of dates:
> they look to me as month, date, year so I formatted them as:
Looks like that to me also.
>> as.Date(ori[[n]], format = "%D")
> # or: as.Date(ori[[n]], format = "%d/%m/%y")
But you format as day, month, yr, not what you suggested.
Try: format = "%m/%d/%Y"
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
More information about the R-help