<?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 Re: Extracting date from file path in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Extracting-date-from-file-path/m-p/487066#M99028</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/119112"&gt;@echuong1&lt;/a&gt;&amp;nbsp;you need a backslash before the period in the regex to escape it's special designation as 'any character'.&lt;BR /&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/108124"&gt;@rajputakansha&lt;/a&gt;&amp;nbsp;a simpler solution is to use a regex formula&amp;nbsp;&amp;nbsp;PadLeft(RegEx_Replace([FileName],'^.*?(\d+)\..*$','\1'),2,'0')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BetterFerret_0-1573241862039.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/85694iF2AA80E53EA84652/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BetterFerret_0-1573241862039.png" alt="BetterFerret_0-1573241862039.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 19:37:55 GMT</pubDate>
    <dc:creator>BetterFerret</dc:creator>
    <dc:date>2019-11-08T19:37:55Z</dc:date>
    <item>
      <title>Extracting date from file path</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Extracting-date-from-file-path/m-p/486532#M98826</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to extract month from file path so that I can do a padleft and get "08","09","10","11" as months in a new column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the file path can change, I want to extract the month from the end(file name format will always be the same).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[C:\Download\2019 Sales\By months\Inputs\1.30.2019 Sales.xlsx|||`2 - Sales]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please suggest the right/dynamic way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 21:32:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Extracting-date-from-file-path/m-p/486532#M98826</guid>
      <dc:creator>rajputakansha</dc:creator>
      <dc:date>2019-11-07T21:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting date from file path</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Extracting-date-from-file-path/m-p/486547#M98833</link>
      <description>&lt;P&gt;You can achieve this using regex. In your input data tool, check the box to include the "Output File Name As Field" and have file name only selected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From there, add a regex tool and tokenize to grab the file name digit portion prior to the first period. From there, you can use a formula tool to pad the numbers if less than two digits. See below for sample configuration and workflow.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="echuong1_1-1573164512105.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/85514i3B7F1C02A6E3A88F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="echuong1_1-1573164512105.png" alt="echuong1_1-1573164512105.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 22:09:51 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Extracting-date-from-file-path/m-p/486547#M98833</guid>
      <dc:creator>echuong1</dc:creator>
      <dc:date>2019-11-07T22:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting date from file path</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Extracting-date-from-file-path/m-p/487066#M99028</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/119112"&gt;@echuong1&lt;/a&gt;&amp;nbsp;you need a backslash before the period in the regex to escape it's special designation as 'any character'.&lt;BR /&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/108124"&gt;@rajputakansha&lt;/a&gt;&amp;nbsp;a simpler solution is to use a regex formula&amp;nbsp;&amp;nbsp;PadLeft(RegEx_Replace([FileName],'^.*?(\d+)\..*$','\1'),2,'0')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BetterFerret_0-1573241862039.png" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/85694iF2AA80E53EA84652/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BetterFerret_0-1573241862039.png" alt="BetterFerret_0-1573241862039.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 19:37:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Extracting-date-from-file-path/m-p/487066#M99028</guid>
      <dc:creator>BetterFerret</dc:creator>
      <dc:date>2019-11-08T19:37:55Z</dc:date>
    </item>
  </channel>
</rss>

