<?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: Extract Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778167#M275840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD Year(Date#(Left([date/time],23),'MMM DD, YYYY hh:mm:ss TT'))&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[TestFile.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2015 03:03:21 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2015-03-11T03:03:21Z</dc:date>
    <item>
      <title>Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778165#M275838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to extract date, month and year from the listed below data,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two formats of data/time in my sales file, where from i have to extract Date, Month, and Year. Each values should be separate as I can assign to variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mar 9, 2015 12:00:40 AM PDT&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;Mar 9, 2015 12:00:40 AM PST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example file is also attached, please find.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 23:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778165#M275838</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-03-10T23:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778166#M275839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 02:43:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778166#M275839</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-03-11T02:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778167#M275840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOAD Year(Date#(Left([date/time],23),'MMM DD, YYYY hh:mm:ss TT'))&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[TestFile.csv]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 03:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778167#M275840</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-03-11T03:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778168#M275841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ishfaque,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;Mar 9, 2015 12:00:40 AM PDT here Replace F1 with your field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;' '&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;','&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;F1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;7&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;5&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;resident&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Tab1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 03:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778168#M275841</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-03-11T03:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778169#M275842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first convert u r data into date format by using date() or date#() then apply Year() ,month() to generate date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 04:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778169#M275842</guid>
      <dc:creator>mukesh24</dc:creator>
      <dc:date>2015-03-11T04:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778170#M275843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/80433_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="80432" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80432_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;LOAD left([date/time],3) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; TextBetween([date/time],' ',',') as Day,&lt;/P&gt;&lt;P&gt;&amp;nbsp; TextBetween([date/time],' ',' ',2) as Year&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;TestFile.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 04:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778170#M275843</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-03-11T04:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778171#M275844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jyothish&lt;/P&gt;&lt;P&gt;Your expression for Year is not dynamic.&lt;/P&gt;&lt;P&gt;It will fail on&lt;/P&gt;&lt;P&gt;Apr 25, 2015 12:18:54 AM PDT&lt;/P&gt;&lt;P&gt;or row where the Day has two characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 04:38:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778171#M275844</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-03-11T04:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778172#M275845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; my bad. Thanks for highlighting it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 04:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778172#M275845</guid>
      <dc:creator>jyothish8807</dc:creator>
      <dc:date>2015-03-11T04:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Year</title>
      <link>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778173#M275846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Ishfaque&lt;/SPAN&gt;,&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;&amp;nbsp;&amp;nbsp; Try this type of code in scripting and then you will get first&amp;nbsp; "Mar 9,2015" after that you can get separately day,month and year.&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;Dates:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @1,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left(FileName(),12)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS&amp;nbsp;&amp;nbsp;&amp;nbsp; Dates&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[Comunity\Mar 9, 2015 120040 AM PDT.txt]&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(txt, codepage is 1252, no labels, delimiter is '\t', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2015 07:04:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Extract-Year/m-p/778173#M275846</guid>
      <dc:creator />
      <dc:date>2015-03-11T07:04:47Z</dc:date>
    </item>
  </channel>
</rss>

