Say I have several files that are generated by a script and follow the pattern:
yyyymmdd_fileName.fileExtension
And yyyymmdd (i.e. 20170202) is a date, where year is 2017, month is February and day is the 2nd).
I know I can get the complete file name and extract the date part, but how do I make it a date element so I can compare with the current date provided by date
?