<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Date Extraction from string in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Date-Extraction-from-string/m-p/88968#M39433</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please suggest ways to extract date in the &lt;STRONG&gt;mm/dd/yyyy&lt;/STRONG&gt; format from below given strings&lt;BR /&gt;&lt;BR /&gt;10/15/2022, 23:59:59 CEST&lt;BR /&gt;10/15/2022, 23:59:59&lt;BR /&gt;10/15/2022, 23:59&lt;BR /&gt;All the above 3 strings are of &lt;STRONG&gt;mm/dd/yyyy&lt;/STRONG&gt; format&lt;BR /&gt;&lt;BR /&gt;Below dates are of format &lt;STRONG&gt;dd.mm.yyyy&lt;/STRONG&gt;&lt;BR /&gt;20.10.2022, 21:59:59 CEST&lt;BR /&gt;20.10.2022, 21:59:59&lt;BR /&gt;20.10.2022, 21:59&lt;BR /&gt;&lt;BR /&gt;both the formats given, need to be converted to &lt;STRONG&gt;mm/dd/yyyy&lt;/STRONG&gt; and only date needs to be extracted.&lt;BR /&gt;&lt;BR /&gt;I have tried using &lt;STRONG&gt;Utility - Strings - Regex::Replace&lt;/STRONG&gt; with patter "&lt;STRONG&gt;(\d{1,2})\.(\d{1,2})\.(\d{4})&lt;/STRONG&gt;" and replacement "&lt;STRONG&gt;$2/$1/$3&lt;/STRONG&gt;" but this does not help with the alphabets and slashes in the string.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bhargava M R RPA Engineer&lt;BR /&gt;Associate Software Engineer&lt;BR /&gt;Mphasis&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------</description>
    <pubDate>Tue, 18 Oct 2022 15:46:00 GMT</pubDate>
    <dc:creator>BhargavaM_R</dc:creator>
    <dc:date>2022-10-18T15:46:00Z</dc:date>
    <item>
      <title>Date Extraction from string</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Date-Extraction-from-string/m-p/88968#M39433</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Please suggest ways to extract date in the &lt;STRONG&gt;mm/dd/yyyy&lt;/STRONG&gt; format from below given strings&lt;BR /&gt;&lt;BR /&gt;10/15/2022, 23:59:59 CEST&lt;BR /&gt;10/15/2022, 23:59:59&lt;BR /&gt;10/15/2022, 23:59&lt;BR /&gt;All the above 3 strings are of &lt;STRONG&gt;mm/dd/yyyy&lt;/STRONG&gt; format&lt;BR /&gt;&lt;BR /&gt;Below dates are of format &lt;STRONG&gt;dd.mm.yyyy&lt;/STRONG&gt;&lt;BR /&gt;20.10.2022, 21:59:59 CEST&lt;BR /&gt;20.10.2022, 21:59:59&lt;BR /&gt;20.10.2022, 21:59&lt;BR /&gt;&lt;BR /&gt;both the formats given, need to be converted to &lt;STRONG&gt;mm/dd/yyyy&lt;/STRONG&gt; and only date needs to be extracted.&lt;BR /&gt;&lt;BR /&gt;I have tried using &lt;STRONG&gt;Utility - Strings - Regex::Replace&lt;/STRONG&gt; with patter "&lt;STRONG&gt;(\d{1,2})\.(\d{1,2})\.(\d{4})&lt;/STRONG&gt;" and replacement "&lt;STRONG&gt;$2/$1/$3&lt;/STRONG&gt;" but this does not help with the alphabets and slashes in the string.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bhargava M R RPA Engineer&lt;BR /&gt;Associate Software Engineer&lt;BR /&gt;Mphasis&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------</description>
      <pubDate>Tue, 18 Oct 2022 15:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Date-Extraction-from-string/m-p/88968#M39433</guid>
      <dc:creator>BhargavaM_R</dc:creator>
      <dc:date>2022-10-18T15:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Date Extraction from string</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Date-Extraction-from-string/m-p/88969#M39434</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="6cc225ac-49b7-4094-8d96-0e9544bae9d8" data-tag-text="@Bhargava M R" href="https://community.blueprism.com/network/profile?UserKey=6cc225ac-49b7-4094-8d96-0e9544bae9d8" data-itemmentionkey="4341d5dd-7746-4952-a725-cc537a2fe25a"&gt;@Bhargava M R&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;The regular expression you provided only handles period (.) character but not forward slashes (/), hence I modified it a bit as shown below:&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;(?&amp;lt;Date&amp;gt;(\d{1,2})[\.\/]+(\d{1,2})[\.\/]+(\d{4}))​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Test Result On Regex101:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19378.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/19529i0DDC997627E73FCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="19378.png" alt="19378.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;To test the same, you can use either of the below two approaches apart from replace regex action as shown below:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Approach 1:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;You can use the ​'&lt;STRONG&gt;Extract Regex All Matches&lt;/STRONG&gt;' action from the latest '&lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---strings?_gl=1*hltaj*_ga*MTAwNzc2NzgzMy4xNjU0MDU5MTc1*_ga_MFBQ2KFZ1L*MTY2NjEyOTg4OC41MTguMS4xNjY2MTMwMjgzLjAuMC4w&amp;amp;_ga=2.159863997.1874113225.1666096751-1007767833.1654059175" target="_blank" rel="noopener"&gt;Utility - Strings&lt;/A&gt;' VBO at Digital Exchange and use the following regex expression:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Test Result On Object Studio:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19379.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/19535i5F9244AD7B29B8E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="19379.png" alt="19379.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19380.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/19532iD2AAAAAF49D26B37/image-size/large?v=v2&amp;amp;px=999" role="button" title="19380.png" alt="19380.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Approach 2:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;You can use the original action '&lt;STRONG&gt;Extract Regex Matches&lt;/STRONG&gt;' which is present from the prior versions of this VBO and make sure you pass the named values collection with the following schema:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19381.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/19531i4770A65E92CC8DCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="19381.png" alt="19381.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The name values collection should have two columns called as, '&lt;STRONG&gt;Name&lt;/STRONG&gt;' and '&lt;STRONG&gt;Value&lt;/STRONG&gt;' with one row where the '&lt;STRONG&gt;Name&lt;/STRONG&gt;' column cell has the value as &lt;EM&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/EM&gt;.&lt;BR /&gt;&lt;BR /&gt;The regular expression pattern would be same as above and upon executing the action you should be able to get the result in the same collection as follows:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19382.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/19530iC561201062060D14/image-size/large?v=v2&amp;amp;px=999" role="button" title="19382.png" alt="19382.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 22:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Date-Extraction-from-string/m-p/88969#M39434</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-10-18T22:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Date Extraction from string</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Date-Extraction-from-string/m-p/88970#M39435</link>
      <description>Thank you &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bhargava M R RPA Engineer&lt;BR /&gt;Associate Software Engineer&lt;BR /&gt;Mphasis&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Oct 2022 11:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Date-Extraction-from-string/m-p/88970#M39435</guid>
      <dc:creator>BhargavaM_R</dc:creator>
      <dc:date>2022-10-19T11:53:00Z</dc:date>
    </item>
  </channel>
</rss>

