XML to Datetime

Looking for help to convert XML output of a ssl certificate and get date out of it.
Then compare and check if that cert has expired or not.

output

“stdout”: “{"not-valid-after": "Apr 20 17:36:03 2022 GMT"}”,
“stdout_lines”: [
“{"not-valid-after": "Apr 20 17:36:03 2022 GMT"}”
],
“stdout_xml”: “Apr 20 17:36:03 2022 GMT\n”

I am looking to change the red highlighted line in datetime format.

Perhaps the XML module is an option:

https://docs.ansible.com/ansible/latest/collections/community/general/xml_module.html

Where does this xml originate from?