as.Date("06/10/2013", "%m/%d/%y") # returns "2020-06-2013 [1...">

Why is as.Date ("06/10/2013", "% m /% d /% y") returning to 2020?

As the name says,

>as.Date("06/10/2013", "%m/%d/%y") # returns "2020-06-2013 [1] "2020-06-10" 

What causes this? I use windows with 32 bit RGui and the latest zoo package.

Thanks.

+4
source share
1 answer

Because %y not %y :

 R> as.Date("06/10/2013", "%m/%d/%Y") # note capital-Y [1] "2013-06-10" R> 
+14
source

Source: https://habr.com/ru/post/1485718/


All Articles