'converting dates in R is changing to future dates, not past

I use this:

want=as.Date(date, '%d-%b-%y')

to convert dates like this: 1-JAN-52

Instead of returning '1952-01-01' I am getting '2052-01-01'. Any advice?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source