What does the "0"mean in "d0my"

parse_date_time("string", orders = "d0mY", "0mY", "Y")

Are you sure you didn't mean to write:

parse_date_time("string", orders = c("d0mY", "0mY", "Y"))

Stephen

1 Like

From the documentation for lubridate::parse_date_time:

Om
Matches numeric month and English alphabetic months (Both, long and abbreviated forms).

Note that it is an uppercase O, not a 0 (zero).

Disclaimer: I am not a frequent user of {lubridate}, so there may be both 0m and Om.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.