Moved get_date_from_file function