I am trying to convert the date-time character string "29.04.2023 06:08:01.165" using the POSIXct function, however I only get null values when I try to convert the whole thing:
test <- "29.04.2023 06:08:01.165"
z <- as.POSIXct(test,format="%d-%m-%Y %H:%M:%OS")
z
[1] NA
What am I doing wrong? It works fine when I just try to return it to the second, but I need the milliseconds.
Thanks in advance for your help!