Got it, thanks! On Tue, Dec 14, 2021 at 11:59 AM Ivan Krylov <krylov.r...@gmail.com> wrote: > > On Tue, 14 Dec 2021 11:54:08 +0100 > Luigi Marongiu <marongiu.lu...@gmail.com> wrote: > > > "9/29/2021" > > > format = "%d/%m/%y" > > > Why the conversion did not work? > > The according to the format, the date above is 9th of month No. 29 in > the year 2020, followed by junk characters "21". Swap %m and %d to make > them follow the actual order and use %Y to parse the 4-digit year > instead of 2-digit year. > > -- > Best regards, > Ivan
-- Best regards, Luigi ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.