<?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 Problem loading dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-loading-dates/m-p/1009649#M342684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem loading dates.&amp;nbsp; The Date format that I have in my data is 'MMM DD YY'.&amp;nbsp; For example, "Dec 01 15"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use subfield() to get the date and year, which seems to be working fine.&amp;nbsp; But I am not able to get the month to be recognized as a Month so that I can format "Dec" as "12".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a&lt;A _jive_internal="true" href="https://community.qlik.com/message/604602#604602"&gt; related post&lt;/A&gt; for data formatting, but I don't understand why I have to do it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't I be able to format my data better during the load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2015 22:50:39 GMT</pubDate>
    <dc:creator>gshockxcc</dc:creator>
    <dc:date>2015-10-19T22:50:39Z</dc:date>
    <item>
      <title>Problem loading dates</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-loading-dates/m-p/1009649#M342684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem loading dates.&amp;nbsp; The Date format that I have in my data is 'MMM DD YY'.&amp;nbsp; For example, "Dec 01 15"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use subfield() to get the date and year, which seems to be working fine.&amp;nbsp; But I am not able to get the month to be recognized as a Month so that I can format "Dec" as "12".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a&lt;A _jive_internal="true" href="https://community.qlik.com/message/604602#604602"&gt; related post&lt;/A&gt; for data formatting, but I don't understand why I have to do it this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't I be able to format my data better during the load script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 22:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-loading-dates/m-p/1009649#M342684</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-10-19T22:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading dates</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-loading-dates/m-p/1009650#M342685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, certainly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your load script, use the function date# to convert your string to the proper Date field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date#(Date, 'MMM DD YY') as ProperDate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, apply the desired Date format to also format the new field any way you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;date(date#(Date, 'MMM DD YY')) as FormattedDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;date(date#(Date, 'MMM DD YY'), 'MM/DD/YYYY') as FormattedDate,&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;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Oleg Troyansky&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=64QJ6MD3O54VZHF7" rel="nofollow"&gt;Check out my new book &lt;EM&gt;QlikView Your Business&lt;/EM&gt;: An expert guide to Business Discovery with QlikView and Qlik Sense&lt;/A&gt;&lt;IMG alt="" border="0" height="1" src="http://ir-na.amazon-adsystem.com/e/ir?t=natursyner0f-20&amp;amp;l=as2&amp;amp;o=1&amp;amp;a=1118949552" style="border: none !important; margin: 0px !important;" width="1" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 23:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-loading-dates/m-p/1009650#M342685</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2015-10-19T23:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem loading dates</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-loading-dates/m-p/1009651#M342686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Oleg.&amp;nbsp; I realize now that I was using the Date( ) format incorrectly.&amp;nbsp; I was giving an input of the data format that I wanted, rather than the format of my data.&amp;nbsp; Everything is working as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 00:00:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-loading-dates/m-p/1009651#M342686</guid>
      <dc:creator>gshockxcc</dc:creator>
      <dc:date>2015-10-20T00:00:07Z</dc:date>
    </item>
  </channel>
</rss>

