<?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: Need help in converting Distorted Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067316#M938106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your attachment in the original post did not work so I am just going to explain based on an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before your load script.. Set the Date and Time formate as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='MM/DD/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='MM/DD/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And try below in your load script.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Date([Your Date Field])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works for me. It turns our client's Australian dates (DD/MM/YYYY) into American (MM/DD/YYYY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Feb 2016 05:41:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-02-08T05:41:49Z</dc:date>
    <item>
      <title>Need help in converting Distorted Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067312#M938102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Date like below, How could I convert into MM-DD-YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Inline image 2" class="jive-image" data-surl="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=21b4e7d578&amp;amp;view=fimg&amp;amp;th=152bde698eca94ed&amp;amp;attid=0.2&amp;amp;disp=emb&amp;amp;realattid=ii_152bde58df976e4b&amp;amp;attbid=ANGjdJ-4hWPuZ_LbemfxNNgNod2dli3Bth9fpuM4iDM3q5bCXdhqzOQCsSe6ikfrpw3YRkPAsslbOuOnqjayBs_LuZAxh0QMiLx6INmRhmBH8Z1iKaxFzPLnNSJ8MeM&amp;amp;sz=s0-l75&amp;amp;ats=1454884952929&amp;amp;rm=152bde698eca94ed&amp;amp;zw" height="540" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=21b4e7d578&amp;amp;view=fimg&amp;amp;th=152bde5999eeb69f&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_152bde58df976e4b&amp;amp;attbid=ANGjdJ_mee10SK0FPbleKsEIEtyriMLzEIRkvxQ32qXUg0ScG2roieda6VE8J5Dpu3-wV4ABBD6pBJsMYz6pEwXA0RjpxRoHWe7ZdauNQ68v4-FMrVhx6p0FaGZVXk8&amp;amp;sz=s0-l75&amp;amp;ats=1454884894429&amp;amp;rm=152bde5999eeb69f&amp;amp;zw" style="color: #222222; font-family: arial, sans-serif; font-size: small; width: 129px; height: 540.378px;" width="129" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="Inline image 1" class="jive-image" data-surl="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=21b4e7d578&amp;amp;view=fimg&amp;amp;th=152bde698eca94ed&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_152bde4d5717c3e3&amp;amp;attbid=ANGjdJ-YnP7eHTAvnhSQAVnArYhy5iLSnWfbkQBtKrCdgWISwdMqqSteZeBib9rvNnFpM1i67lQvjx4mvIfgfUE7yBfwkukiOcq3wcJa5HM8VyIlTRIUCuzz4gmaPaA&amp;amp;sz=s0-l75&amp;amp;ats=1454884952929&amp;amp;rm=152bde698eca94ed&amp;amp;zw" height="544" src="https://mail.google.com/mail/u/0/?ui=2&amp;amp;ik=21b4e7d578&amp;amp;view=fimg&amp;amp;th=152bde5999eeb69f&amp;amp;attid=0.2&amp;amp;disp=emb&amp;amp;realattid=ii_152bde4d5717c3e3&amp;amp;attbid=ANGjdJ8qU7_-Mw9x8BhPyTVFfV11F0hBElCBJoQmcC_iB1LqGLgfX7M4zFddLfpQNr7NGQDuMdDHcOHvZZ-Vx1xzpP7tuOrvxOKZUuBfWqoc2g6A-eqZv7MAHY8Kih8&amp;amp;sz=s0-l75&amp;amp;ats=1454884894429&amp;amp;rm=152bde5999eeb69f&amp;amp;zw" style="color: #222222; font-family: arial, sans-serif; font-size: small; width: 126px; height: 543.846px;" width="126" /&gt;&lt;/P&gt;&lt;P&gt;~&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2016 22:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067312#M938102</guid>
      <dc:creator />
      <dc:date>2016-02-07T22:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in converting Distorted Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067313#M938103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Images are not visible, would you be able to reattach?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic idea is to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(DateField, 'YourCurrentFormatHere'), 'MM-DD-YYYY') as DateField&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2016 23:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067313#M938103</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-07T23:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in converting Distorted Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067314#M938104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your date field shows different formats (and this is what you called distorted), you can look into Alt() function to test different date formats:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example from HELP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;alt(&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;date#( dat , 'YYYY/MM/DD' ),&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;date#( dat , 'MM/DD/YYYY' ),&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;date#( dat , 'MM/DD/YY' ),&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;'No valid date'&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;)&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;In general, have a look into&lt;/P&gt;&lt;P class="Code" data-mc-conditions="Primary.NotToTranslate"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 00:35:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067314#M938104</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T00:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in converting Distorted Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067315#M938105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is some more data which is not shown in the image. Where you could find data as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2914&lt;/P&gt;&lt;P&gt;2421&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where i assumed it to be Feb 9th 2014 and Feb 4th 2021 but its not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Swuehl. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 04:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067315#M938105</guid>
      <dc:creator />
      <dc:date>2016-02-08T04:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in converting Distorted Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067316#M938106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your attachment in the original post did not work so I am just going to explain based on an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before your load script.. Set the Date and Time formate as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='MM/DD/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='MM/DD/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And try below in your load script.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Date([Your Date Field])&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateField&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works for me. It turns our client's Australian dates (DD/MM/YYYY) into American (MM/DD/YYYY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 05:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067316#M938106</guid>
      <dc:creator />
      <dc:date>2016-02-08T05:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in converting Distorted Date</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067317#M938107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And how do you interpret &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;12212&lt;/P&gt;&lt;P&gt;January 22 2012 or December 2nd 2012? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Feb 2016 11:26:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-in-converting-Distorted-Date/m-p/1067317#M938107</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-08T11:26:48Z</dc:date>
    </item>
  </channel>
</rss>

