[R] Format dates issues with R

Luigi Marongiu m@rong|u@|u|g| @end|ng |rom gm@||@com
Tue Dec 14 12:08:01 CET 2021


Got it, thanks!

On Tue, Dec 14, 2021 at 11:59 AM Ivan Krylov <krylov.r00t using gmail.com> wrote:
>
> On Tue, 14 Dec 2021 11:54:08 +0100
> Luigi Marongiu <marongiu.luigi using 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



More information about the R-help mailing list