<?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: Challenge #58: An Odd String to Date Conversion in Weekly Challenges</title>
    <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47379#M404</link>
    <description>&lt;P&gt;Too easy.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Feb 2017 13:40:31 GMT</pubDate>
    <dc:creator>PaulRB</dc:creator>
    <dc:date>2017-02-21T13:40:31Z</dc:date>
    <item>
      <title>Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47283#M398</link>
      <description>&lt;P&gt;The solution to last week's challenge is &lt;A href="https://community.alteryx.com/t5/Weekly-Challenge/Challenge-57-Build-a-Valentine-s-Day-App/m-p/46372" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This week we will be offering our third ever challenge on converting strings to dates. Sometimes these may be simple, but every once in awhile, we come across those source systems that drop things in a format that are better understood by machine than by a human. In this week's challenge, convert the string to a date using the following rules:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) The Input contains dates formatted as year, month, day where the first character details if the year begins with 19 or 20.&lt;/P&gt;
&lt;P&gt;2) It is 19 when the first character is 0 and 20 when the character is 1.&lt;/P&gt;
&lt;P&gt;3) The remainder of the date following the 0 or 1 is the remaining year digits followed by month followed by day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp;1040202 should become 2004-02-02.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 17:46:37 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47283#M398</guid>
      <dc:creator>JoeM</dc:creator>
      <dc:date>2023-05-09T17:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge 58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47285#M400</link>
      <description>&lt;P&gt;Here's my solution. Quite an easy one.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 08:10:17 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47285#M400</guid>
      <dc:creator>lbansal</dc:creator>
      <dc:date>2017-02-20T08:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge 58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47332#M401</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is actually pretty simple but I was stuck for 15 min with...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;the fact that my result was truncated to 7 characters all the time... then I realize that I had to change the field type&amp;nbsp;or size...&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 998px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/13027i8BE1E4BAF7CC4E19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Thanks and have a great week all,&lt;/P&gt;&lt;P&gt;Maxime&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 17:47:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47332#M401</guid>
      <dc:creator>Max06270</dc:creator>
      <dc:date>2017-02-20T17:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge 58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47354#M402</link>
      <description>&lt;P&gt;Single formula method.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 22:01:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47354#M402</guid>
      <dc:creator>JeffF</dc:creator>
      <dc:date>2017-02-20T22:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47373#M403</link>
      <description>&lt;P&gt;Nice little thinking problem. posted mine on the gallery&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gallery.alteryx.com/#!app/challenge_58_PJH_complete/58ac2e44a18e9e0a285a7090" target="_blank"&gt;My example&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 12:15:54 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47373#M403</guid>
      <dc:creator>paul_houghton</dc:creator>
      <dc:date>2017-02-21T12:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47379#M404</link>
      <description>&lt;P&gt;Too easy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 13:40:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47379#M404</guid>
      <dc:creator>PaulRB</dc:creator>
      <dc:date>2017-02-21T13:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47466#M405</link>
      <description>&lt;P&gt;Here is my attempt...&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 23:34:17 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47466#M405</guid>
      <dc:creator>Hartwick96</dc:creator>
      <dc:date>2017-02-21T23:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47486#M406</link>
      <description>&lt;P&gt;As this could be used for multiple conversions, I made a macro out of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Rajiv&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 05:36:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47486#M406</guid>
      <dc:creator>rajiv_tarafdar</dc:creator>
      <dc:date>2017-02-22T05:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47496#M407</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would love to participate to these challenges (to improve my knowledge and learn stuff), however i only have an acces to a 9.5 version of Alteryx so when i try to participate i can't open the input :(&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think that it would be possible to have it compatible with my granpa version ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 09:59:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47496#M407</guid>
      <dc:creator>DinoF</dc:creator>
      <dc:date>2017-02-22T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47546#M408</link>
      <description>&lt;P&gt;My solution. Looking at other examples and I ended up with a very similar approach. Why break a working system :)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 14:53:49 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47546#M408</guid>
      <dc:creator>JohnG</dc:creator>
      <dc:date>2017-02-22T14:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47557#M409</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/11329"&gt;@DinoF&lt;/a&gt;, I will try to be more diligent&amp;nbsp;with making more backward compatible workflows. Attached, I have a workflow that should work with your version. If you ever find yourself in a spot where you do not have a compatible workflow version, you can make is compatible (most of the time) by following &lt;A href="https://community.alteryx.com/t5/Alteryx-Knowledge-Base/Adjusting-Alteryx-Files-for-Different-Versions/ta-p/26237" target="_blank"&gt;this knowledgebase article&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, check out the "modify Alteryx&amp;nbsp;workflow version" that&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3557"&gt;@MarqueeCrew&lt;/a&gt;&amp;nbsp;has posted on the &lt;A href="https://gallery.alteryx.com/#!app/Modify-Alteryx-Workflow-Version/5773f9c33df7da0e58dc82d3" target="_blank"&gt;Gallery&lt;/A&gt;!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 15:26:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47557#M409</guid>
      <dc:creator>JoeM</dc:creator>
      <dc:date>2017-02-22T15:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47642#M410</link>
      <description>&lt;P&gt;Here's a solution on v11.&amp;nbsp;&amp;nbsp;My first chance to play with&amp;nbsp;the updated formula tool.&amp;nbsp;&amp;nbsp;I like!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 22:53:59 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47642#M410</guid>
      <dc:creator>DanielUpton</dc:creator>
      <dc:date>2017-02-22T22:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47693#M411</link>
      <description>&lt;P&gt;Hi there, thanks for the tip (modifying the XML with notepad) !&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:21:19 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47693#M411</guid>
      <dc:creator>DinoF</dc:creator>
      <dc:date>2017-02-23T14:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47696#M412</link>
      <description>&lt;P&gt;Well this was a good exercise &amp;nbsp;(more like a good break), you'll find my solution enclosed :) BTW the limitation on the lentgh to 7 char was a good one i'll give you that !&lt;/P&gt;</description>
      <pubDate>Thu, 23 Feb 2017 14:45:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/47696#M412</guid>
      <dc:creator>DinoF</dc:creator>
      <dc:date>2017-02-23T14:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/48449#M438</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3804"&gt;@JoeM&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Used a single formula for this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;datetimeparse(tostring(19+tonumber(left([date],1)))+substring([date],1,2)+right([date],4),"%Y%m%d")&lt;/LI-SPOILER&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 13:32:29 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/48449#M438</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2017-03-02T13:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/48459#M440</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3557"&gt;@MarqueeCrew&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Nicely done! Now I have to play too! I probably would have done something near identical to what you did, but decided to try&amp;nbsp;to be creative and find another way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;P&gt;tostring(tonumber(left([date],1))+19)+REGEX_Replace([date],".(.{2})(.{2})(.{2})","$1-$2-$3")&lt;/P&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 15:27:48 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/48459#M440</guid>
      <dc:creator>JoeM</dc:creator>
      <dc:date>2017-03-02T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/48572#M449</link>
      <description>&lt;P&gt;Regex + Formula tool&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 01:09:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/48572#M449</guid>
      <dc:creator>JoshK_dup_167</dc:creator>
      <dc:date>2017-03-03T01:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/52309#M572</link>
      <description>&lt;P&gt;Ok, I may have taken a slightly different approach:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;I first identified and isolated the first character of the string, which denotes the year, using the simple&amp;nbsp;left([date],1) formula.&lt;BR /&gt;I then created a text input as a mapping table:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text input.PNG" style="width: 151px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/14426i24DE9F79D391EC35/image-size/large?v=v2&amp;amp;px=999" role="button" title="Text input.PNG" alt="Text input.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I then joined this table on the first character, then took the new year value.&lt;BR /&gt;I then simply appended the year to the rest of the data string, effectively replacing the first character with the appropriate year value. Then I simply parsed the date.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Solution.PNG" style="width: 767px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/14428i1643FC3CE33F27DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Solution.PNG" alt="Solution.PNG" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Thu, 30 Mar 2017 15:30:03 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/52309#M572</guid>
      <dc:creator>mceleavey</dc:creator>
      <dc:date>2017-03-30T15:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/53630#M650</link>
      <description>&lt;P&gt;simple 3 box solution&lt;/P&gt;&lt;LI-SPOILER&gt;formula to split&lt;BR /&gt;Date time convert to convert&lt;BR /&gt;Select to clean up&lt;/LI-SPOILER&gt;</description>
      <pubDate>Wed, 05 Apr 2017 18:33:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/53630#M650</guid>
      <dc:creator>SeanAdams</dc:creator>
      <dc:date>2017-04-05T18:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Challenge #58: An Odd String to Date Conversion</title>
      <link>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/54020#M669</link>
      <description>&lt;P&gt;My solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WeeklyChallenge58.JPG" style="width: 606px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/15184i4E51B8BC0BA93749/image-size/large?v=v2&amp;amp;px=999" role="button" title="WeeklyChallenge58.JPG" alt="WeeklyChallenge58.JPG" /&gt;&lt;/span&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Fri, 07 Apr 2017 21:22:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Weekly-Challenges/Challenge-58-An-Odd-String-to-Date-Conversion/m-p/54020#M669</guid>
      <dc:creator>NicoleJohnson</dc:creator>
      <dc:date>2017-04-07T21:22:02Z</dc:date>
    </item>
  </channel>
</rss>

