View source: R/is_valid_date_str.R
is_valid_date_str | R Documentation |
Taken from github.com/rmsharp/rmsutilityr
is_valid_date_str(
date_str,
format = "%d-%m-%Y %H:%M:%S",
optional = FALSE
)
date_str |
character vector with 0 or more dates |
format |
character vector of length one having the date format |
optional |
parameter to |
A logical value or NA
indicating whether or not the provided
character vector represented a valid date string.
is_valid_date_str(c("13-21-1995", "20-13-98", "5-28-1014",
"1-21-15", "2-13-2098", "25-28-2014"), format = "%m-%d-%y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.