I have used regex to pull the date from the below Outlook email example:
“From: john@workplace.com
Sent: Thursday, 23 May 2019 7:11 AM
To: Team Inbox
Subject: Send me some more cookies”
Regex pattern used is:
How does my regex pattern look? Any improvements/suggestions?
Once I have pulled date field (eg, ‘23 May 2019’) - What is the easiest way to add 21 calendar days to this date in string format?
Hi @Steven_McKeering
well it looks great…
to add 21 days you can do like this with a assign activity out_date_value = Datetime.Parseexact(DateString,“dd MMM yyyy”,System.Globalization.CultureInfo.InvariantCulture).AddDays(21)
where out_date_value is a variable of type datetime
else it looks good with your workflow,
Cheers @Steven_McKeering
so you want the output as a string not datetime buddy
if so
its like this where create a variable out_date_value of type string out_date_value = Datetime.Parseexact(DateString,“dd MMM yyyy”,System.Globalization.CultureInfo.InvariantCulture).AddDays(21).ToString(“dd MMM yyyy”)
Kindly correct me if still i have understood the query wrongly