How to extract date from outlook email subject

Hi All,

Im having an email with subject name ABCD EFGH (20-JUL-2019), I need to extract the date alone 20-JUL-2019. Please help on this.

Hi @arivazhagan_mathivan
You can get the date of Email Using MailMessagevariable.Headers(“Date”) if you want from the subject then Use MailMessageVariable.subject.split("(")(1).split(")")(0) and If you are using It in For each then Use item instead of MailMessage variable.
Thanks & Regards