Both the following two lines of code return NA.
as.POSIXct("1-March-2021 11:45", format="%d-%B-%Y %H:%M")
as.POSIXct("1-Mar-2021 11:45", format="%d-%b-%Y %H:%M")
But if I change March
to 3
, it works fine.
as.POSIXct("1-3-2021 11:45", format="%d-%m-%Y %H:%M")
I am stuck here. Thanks for any hint.