How to extract date from string

I have a string Certificate Expiration Date: 2/23/2022 7:39 AM and from this I want to extract the date only in the format Wednesday, February 23, 2022 7:39:23 AM and store it in a variable in date format

Any script to achieve this will be helpful

([datetime]“2/23/2022 7:39 AM”).datetime

Create a substring to remove the beginning "Certificate Expiration Date: ", then cast it to a DateTime format.

$string = "Certificate Expiration Date: 2/23/2022 7:39 AM"

$dateTimeString = [DateTime]$string.Substring($string.IndexOf(":")+1)