Edit file attributes from filename

I'm nowhere near geek enough to manage this, but I'll try to start at least. And maybe you can just point me to relevant topics in the manual.
I have a bunch of archived emails in PDF form in a certain folder. (Generated by an Email archiving app). The filenames begin with date/time of the original email in this format: 2020-11-21 04-58-19. (Followed by email subject). As the archives were created months / years after the emails, their date-time attributes are nothing close to those of the original emails.
What I'm hoping for is a Hazel rule that would read the date (and I suppose time, though that doesn't matter so much), and then edit the files' Finder date attributes to match the date in the filename. I'm guessing this might be a job for "match patterns"? I know zip about that, but am willing to learn. What part/s of the manual do I need to read?
Thanks.
I have a bunch of archived emails in PDF form in a certain folder. (Generated by an Email archiving app). The filenames begin with date/time of the original email in this format: 2020-11-21 04-58-19. (Followed by email subject). As the archives were created months / years after the emails, their date-time attributes are nothing close to those of the original emails.
What I'm hoping for is a Hazel rule that would read the date (and I suppose time, though that doesn't matter so much), and then edit the files' Finder date attributes to match the date in the filename. I'm guessing this might be a job for "match patterns"? I know zip about that, but am willing to learn. What part/s of the manual do I need to read?
Thanks.