Auto detect date format

I want to find the last date in file content. There are many date formats in files. Usually, it works, but some formats are missing from patterns. Eg: 2019.12.28.
How can I put this missing format?
How can I put this missing format?