R/dateFormatCheck.r
dateFormatCheck.Rd
Checks to see if format is YYYY-MM-DD. Also performs a few other date checks.
dateFormatCheck(date)
character
condition logical TRUE or FALSE if checks passed or failed
date <- '1985-01-01' dateFormatCheck(date) #> [1] TRUE dateWrong <- '1999/1/7' dateFormatCheck(dateWrong) #> [1] FALSE