I am trying to extract information from an email from an HR program, use the dates it send , then input those date into a calendar event for the date range.
This is a sample of the output I typically get from the body preview.
""bodyPreview": "Your Time Off was Approved\r\n________________________________\r\n\r\nHey Noah,\r\n\r\nYour time off request for 2 days of Flexible Paid Time Off has been approved by Chris.\r\n\r\n________________________________\r\n\r\nFri, Jul 12 - Mon, Jul 15\r\n_______________",
I would just like to extract the Fri, Jul 12 - Mon, Jul 15, convert it to a usable date format, and list it as a beginning and end range.
I figure I can put a condition that if there is no second date it will put the first date for the beginning and the end.