[R] Format dates issues with R
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Tue Dec 14 11:59:51 CET 2021
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
More information about the R-help
mailing list