<?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 Loading problem with Date which is in YYMMDD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429075#M695706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load data which is a numeric field in YYMMDD format and convert it to YYYYMMDD format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following in the script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date(&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;makedate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('20'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,3,2), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2)),'YYYY/MM/DD') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CDate&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation Date is 6 digits (YYMMDD) but for year less then 10 there is no leading zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg 51205 which represents date 5th Dec 2005 CDate is converted to -&lt;/P&gt;&lt;P&gt;For Eg 60103 which represents date 3rd Jan 2006 CDate is converted to 2060/10/03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me solve the problem so I can get correct dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Apr 2013 13:18:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-06T13:18:05Z</dc:date>
    <item>
      <title>Loading problem with Date which is in YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429075#M695706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load data which is a numeric field in YYMMDD format and convert it to YYYYMMDD format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following in the script:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date(&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;makedate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('20'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,3,2), &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,2)),'YYYY/MM/DD') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CDate&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creation Date is 6 digits (YYMMDD) but for year less then 10 there is no leading zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Eg 51205 which represents date 5th Dec 2005 CDate is converted to -&lt;/P&gt;&lt;P&gt;For Eg 60103 which represents date 3rd Jan 2006 CDate is converted to 2060/10/03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me solve the problem so I can get correct dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 13:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429075#M695706</guid>
      <dc:creator />
      <dc:date>2013-04-06T13:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading problem with Date which is in YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429076#M695707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date( date#('20' &amp;amp;&lt;SPAN style="color: #800000; font-family: Arial; font-size: 11px; background-color: #ffffff;"&gt;[Creation Date]&lt;/SPAN&gt;,'YYYYMMD'),'YYYY/MM/DD')&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as example this&amp;nbsp; copy and paste this code&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD date( date#('20' &amp;amp;[Creation date],'YYYYMMD'),'YYYY/MM/DD')&amp;nbsp; as create,* INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Creation date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 60103&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 05024&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 13:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429076#M695707</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-04-06T13:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Loading problem with Date which is in YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429077#M695708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please try the below code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date( date#( num( '60501','000000') ,'YYMMDD'),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know for the same .&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 04:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429077#M695708</guid>
      <dc:creator />
      <dc:date>2013-04-07T04:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loading problem with Date which is in YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429078#M695709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Len&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) = 5,'0'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Creation Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'YYMMDD'),'DD/MM/YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;New_Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;Creation Date&lt;BR /&gt;51205&lt;BR /&gt;60103&lt;BR /&gt;091010&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2013 06:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429078#M695709</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-07T06:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Loading problem with Date which is in YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429079#M695710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 07:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429079#M695710</guid>
      <dc:creator />
      <dc:date>2013-04-08T07:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading problem with Date which is in YYMMDD</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429080#M695711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12.800002098083496px; color: #737373; font-family: Arial;"&gt;Hi ,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800002098083496px; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please try the below code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800002098083496px; color: #737373; font-family: Arial;"&gt;=date( date#( num( '60501','000000') ,'YYMMDD'),'YYYYMMDD')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800002098083496px; color: #737373; font-family: Arial;"&gt;Please let me know for the same .&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12.800002098083496px; color: #737373; font-family: Arial;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 17:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-problem-with-Date-which-is-in-YYMMDD/m-p/429080#M695711</guid>
      <dc:creator />
      <dc:date>2013-04-08T17:51:37Z</dc:date>
    </item>
  </channel>
</rss>

