Check date input strings conform to the required format.
Arguments
- instr
character(1). String to check.
- format
character(1). Matching format to be checked. Default is
"%Y-%m-%d"
, which can detect"%Y/%m/%d
. Seestrftime
for details of formatting this string.