<?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: Formula to getting correct date in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432726#M81237</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/90687"&gt;@chughes49&lt;/a&gt;&amp;nbsp; Does that happen if there is no space between your month and year? If so, try this expression to get your month:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX_Replace([Field1], ".*\-\s(.*)\d{4}", "$1")&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 27 Jun 2019 19:28:02 GMT</pubDate>
    <dc:creator>Kenda</dc:creator>
    <dc:date>2019-06-27T19:28:02Z</dc:date>
    <item>
      <title>Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432717#M81232</link>
      <description>&lt;P&gt;Hey yall, I currently have this but I am trying to create 3 separate formulas that create "Jan" ,&amp;nbsp; "2019" , and "Jan 2019". Anything that someone can do would help so much. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="12345678.JPG" style="width: 264px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/67663iCBB8EBD971C16D75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12345678.JPG" alt="12345678.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:12:56 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432717#M81232</guid>
      <dc:creator>chughes49</dc:creator>
      <dc:date>2019-06-27T19:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432719#M81233</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/90687"&gt;@chughes49&lt;/a&gt;&amp;nbsp;One way to do it would be using the Text to columns tool to parse out the date field. Attached is the workflow. Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:17:40 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432719#M81233</guid>
      <dc:creator>DiganP</dc:creator>
      <dc:date>2019-06-27T19:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432721#M81234</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/90687"&gt;@chughes49&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend using the following expressions in your Formula tool:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Month:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX_Replace([Field1], ".*\-\s(.*)\s.*", "$1")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Year:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tonumber(REGEX_Replace([Field1], ".*\-\s.*(\d{4})", "$1"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX_Replace([Field1], ".*\-\s(.*)", "$1")&lt;/LI-CODE&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="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/67665iA899340716503959/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:17:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432721#M81234</guid>
      <dc:creator>Kenda</dc:creator>
      <dc:date>2019-06-27T19:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432722#M81235</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/5858"&gt;@Kenda&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so much, that was very helpful. However, the month and both formulas are the same which give both. What would need to be changed for it to be just "Jan'?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:24:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432722#M81235</guid>
      <dc:creator>chughes49</dc:creator>
      <dc:date>2019-06-27T19:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432726#M81237</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/90687"&gt;@chughes49&lt;/a&gt;&amp;nbsp; Does that happen if there is no space between your month and year? If so, try this expression to get your month:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;REGEX_Replace([Field1], ".*\-\s(.*)\d{4}", "$1")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:28:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432726#M81237</guid>
      <dc:creator>Kenda</dc:creator>
      <dc:date>2019-06-27T19:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432729#M81239</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/5858"&gt;@Kenda&lt;/a&gt;&amp;nbsp;, Yeah your right! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:29:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432729#M81239</guid>
      <dc:creator>chughes49</dc:creator>
      <dc:date>2019-06-27T19:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432734#M81242</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/5858"&gt;@Kenda&lt;/a&gt;&amp;nbsp;How might that formula differ to get the same output but with "2019-01-31"?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:42:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432734#M81242</guid>
      <dc:creator>chughes49</dc:creator>
      <dc:date>2019-06-27T19:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formula to getting correct date</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432739#M81244</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/90687"&gt;@chughes49&lt;/a&gt;&amp;nbsp;So this is sort of a gross expression, but if you want the last day of the month given, use this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DateTimeAdd(DateTimeAdd(DateTimeParse(REGEX_Replace([Field1], ".*\-\s(.*)", "$1"),"%b%Y"),1,"month"),-1,"days")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, you get your month/year combo into a date format, but it will return the first day of the month. So then you must add one month then subtract one day to get the last day of your desired month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:50:06 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Formula-to-getting-correct-date/m-p/432739#M81244</guid>
      <dc:creator>Kenda</dc:creator>
      <dc:date>2019-06-27T19:50:06Z</dc:date>
    </item>
  </channel>
</rss>

