standardize_date | R Documentation |
This function attempts to parse a date string using multiple formats and standardizes it to "YYYY-MM-DD". It first tries ISO 8601 formats, and then common formats like ymd, dmy, and mdy.
standardize_date(date_str)
date_str |
A character string representing a date. |
A character string representing the standardized date in "YYYY-MM-DD" format, or NA if the date cannot be parsed.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.