Skip to content
Prev 257147 / 398521 Next

as.Date function error

On Sun, 17 Apr 2011, Wonjae Lee wrote:

            
You used %y (two-digit year, here: "20" and then expanded to "2020") 
instead of %Y (four-digit year, here "2010").

Using as.Date(x,"%m/%d/%Y") yields the desired result.
Z