as.Date cannot convert "%d.%m.%y" format?

Viewed 33

For some (devilish) reason as.Date cannot convert %d.%m.%y" format.

x = c("22.05.2021")
as.Date(x, "%d.%m.%y")

Output: "2020-05-22"

In case you missed it, the year is wrong.

What in God's name is this?

Thx

0 Answers
Related