12.3 Non-standard date formatting
# an example of a non-standard date format
'WED 06-JUNE-18 10:47:30 AM'
## [1] "WED 06-JUNE-18 10:47:30 AM"
If you look at the as_datetime
function, under the ‘format’ section there is a link to the strptime
documentation
If you look at the strptime
documentation, you will get a nice table of codes you can use to create your own datetime pattern
You can now use these variables to create a pattern for your custom datetime string