Extract the date from a filename in YYYYMMDD format.

extract_date(filename)

Arguments

filename

A character string representing the filename.

Value

A character string representing the extracted date, or NULL if no date is found.