<?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: Converting multiple date formats in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982657#M335360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Region='Americas', date#(Date,'MM/DD/YYYY'),date#('DD/MM/YYYY')) as SALES_DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Region='Europe', date#(Date,'DD/MM/YYYY'),date#('MM/DD/YYYY')) as SALES_DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A wrong date format might explain that some dates couldn't be interpreted, but it wouldn't explain that you only see first date for each month.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 21:32:22 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-10-01T21:32:22Z</dc:date>
    <item>
      <title>Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982654#M335357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a region and date field loaded in as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Region,&lt;/P&gt;&lt;P&gt;date#(Date,'MM/DD/YYYY') as SALES _DATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However where Region = Europe my date formats are in DD/MM/YYYY. For instance in my raw data&amp;nbsp; I have dates such as 1/4/2013, 1/9/2013 which really should read 4/1/2013, 9/1/2013. How do I load these specific dates ie where region = america differently ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 18:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982654#M335357</guid>
      <dc:creator />
      <dc:date>2015-10-01T18:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982655#M335358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can change format depending on Region&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Region,&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;if(Region='............',&amp;nbsp; date#(Date,'MM/DD/YYYY'),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;if(Region='............',&amp;nbsp; date#(Date,'DD/MM/YYYY'),&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date#('DD-MM-YYYY')&amp;nbsp;&amp;nbsp;&amp;nbsp; // default format &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;)) &lt;/EM&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;EM&gt;as SALES _DATE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 19:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982655#M335358</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-01T19:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982656#M335359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks maxgro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have but I realised it's now only showing the first date value for each month which is really odd :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Region='Americas', date#(Date,'DD/MM/YYYY'),date#('MM/DD/YYYY')) as SALES_DATE,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982656#M335359</guid>
      <dc:creator />
      <dc:date>2015-10-01T21:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982657#M335360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't you use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Region='Americas', date#(Date,'MM/DD/YYYY'),date#('DD/MM/YYYY')) as SALES_DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Region='Europe', date#(Date,'DD/MM/YYYY'),date#('MM/DD/YYYY')) as SALES_DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A wrong date format might explain that some dates couldn't be interpreted, but it wouldn't explain that you only see first date for each month.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982657#M335360</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-01T21:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982658#M335361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks swuehl but I can't see how that's any different from my original code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to confirm it's only the 'Americas' region which is currently in DD/MM/YYYY. The rest of the regions would be loaded as normal. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 22:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982658#M335361</guid>
      <dc:creator />
      <dc:date>2015-10-01T22:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982659#M335362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code differs to your code posted in your second post in the format codes used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt; Just to confirm it's only the 'Americas' region which is currently in DD/MM/YYYY. The rest of the regions would be loaded as normal. &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am little confused. In your original post, you said:&lt;/P&gt;&lt;P&gt;...&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;However where Region = Europe my date formats are in DD/MM/YYYY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Not sure if I understand your issue, could you post some sample lines of data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 22:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982659#M335362</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-01T22:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982660#M335363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry let me clarify. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a number of regions aside from Americas where the date format is already in MM/DD/YYYY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only for Americas are the dates in DD/MM/YYYY and these need to be converted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard to only seeing one date value for each month - I've worked out what's happening. Basically the script is 'only' loading the 'Americas' dates whereas it should be loading all dates and converting the format where necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that clarifies. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 22:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982660#M335363</guid>
      <dc:creator />
      <dc:date>2015-10-01T22:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982661#M335364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is the field Date missing in second date#() function, I assume this is only a copy &amp;amp; paste error in the post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(Region='Americas', date#(Date,'DD/MM/YYYY'),date#(&lt;STRONG&gt;Date,&lt;/STRONG&gt; 'MM/DD/YYYY')) as SALES_DATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 22:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982661#M335364</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-01T22:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting multiple date formats</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982662#M335365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I literally just spotted that ! Good call ... thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 23:06:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-multiple-date-formats/m-p/982662#M335365</guid>
      <dc:creator />
      <dc:date>2015-10-01T23:06:39Z</dc:date>
    </item>
  </channel>
</rss>

