:param file_name: The name of the file from which to extract the date. :return: A datetime object with the extracted date. """Determines if a file name starts with a date in 'YYYY-MM-DD' format.