<?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 Dynamically convert a date into Year,Month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dynamically-convert-a-date-into-Year-Month/m-p/1681979#M51917</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to segregate the month and Year from a Column names as&amp;nbsp; "Date" in which the dates are displayed like 1/12/2012,5/10/2014(MMDDYYYY) etc..&lt;/P&gt;&lt;P&gt;now created two more columns in the table just beside the Date: column, those are "Month" and "year"&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; Year&lt;/P&gt;&lt;P&gt;1/12/2012&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;----&lt;/P&gt;&lt;P&gt;Now my question is how to put the 2012(YYYY) and 1(MM) i.e Janauary ,&amp;nbsp; &amp;nbsp; value of the Date filed into my new "Year" and "Month" columns?&lt;/P&gt;&lt;P&gt;for example-----&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Month&lt;/P&gt;&lt;P&gt;1/12/2012&amp;nbsp; &amp;nbsp; &amp;nbsp;2012&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan&lt;/P&gt;&lt;P&gt;5/10/2014&amp;nbsp; &amp;nbsp; &amp;nbsp;2014&amp;nbsp; &amp;nbsp; &amp;nbsp; May&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me solving this issue?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 10:02:38 GMT</pubDate>
    <dc:creator>souvik</dc:creator>
    <dc:date>2020-03-05T10:02:38Z</dc:date>
    <item>
      <title>Dynamically convert a date into Year,Month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-convert-a-date-into-Year-Month/m-p/1681979#M51917</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need to segregate the month and Year from a Column names as&amp;nbsp; "Date" in which the dates are displayed like 1/12/2012,5/10/2014(MMDDYYYY) etc..&lt;/P&gt;&lt;P&gt;now created two more columns in the table just beside the Date: column, those are "Month" and "year"&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Month&amp;nbsp; &amp;nbsp; &amp;nbsp; Year&lt;/P&gt;&lt;P&gt;1/12/2012&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;----&lt;/P&gt;&lt;P&gt;Now my question is how to put the 2012(YYYY) and 1(MM) i.e Janauary ,&amp;nbsp; &amp;nbsp; value of the Date filed into my new "Year" and "Month" columns?&lt;/P&gt;&lt;P&gt;for example-----&lt;/P&gt;&lt;P&gt;Date&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Month&lt;/P&gt;&lt;P&gt;1/12/2012&amp;nbsp; &amp;nbsp; &amp;nbsp;2012&amp;nbsp; &amp;nbsp; &amp;nbsp; Jan&lt;/P&gt;&lt;P&gt;5/10/2014&amp;nbsp; &amp;nbsp; &amp;nbsp;2014&amp;nbsp; &amp;nbsp; &amp;nbsp; May&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help me solving this issue?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:02:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-convert-a-date-into-Year-Month/m-p/1681979#M51917</guid>
      <dc:creator>souvik</dc:creator>
      <dc:date>2020-03-05T10:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically convert a date into Year,Month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-convert-a-date-into-Year-Month/m-p/1681990#M51919</link>
      <description>&lt;P&gt;That should be pretty simple using qlik functions month() and year(), like:&lt;/P&gt;&lt;P&gt;Month(Date) as Month&lt;/P&gt;&lt;P&gt;Year(Date) as Year&lt;/P&gt;&lt;P&gt;However, if your Date field values are not read as proper dates by qlik, you might have use date parsing function &lt;STRONG&gt;date#()&lt;/STRONG&gt; additionally like:&lt;/P&gt;&lt;P&gt;Month(Date#(Date,'&lt;SPAN&gt;MM/DD/YYYY&lt;/SPAN&gt;')) as Month&lt;/P&gt;&lt;P&gt;Year(Date#(Date,'&lt;SPAN&gt;MM/DD/YYYY&lt;/SPAN&gt;')) as Year&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-convert-a-date-into-Year-Month/m-p/1681990#M51919</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2020-03-05T10:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically convert a date into Year,Month</title>
      <link>https://community.qlik.com/t5/App-Development/Dynamically-convert-a-date-into-Year-Month/m-p/1682024#M51926</link>
      <description>First, convert your Date to DDMMYYYY format using&lt;BR /&gt;date(date#(Date,'MM/DD/YYYY'),'DD/MM/YYYY')as Date;&lt;BR /&gt;then use functions&lt;BR /&gt;year(Date) as Year field&lt;BR /&gt;month(Date) as Month field</description>
      <pubDate>Thu, 05 Mar 2020 11:58:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dynamically-convert-a-date-into-Year-Month/m-p/1682024#M51926</guid>
      <dc:creator>nikitadeshwal</dc:creator>
      <dc:date>2020-03-05T11:58:57Z</dc:date>
    </item>
  </channel>
</rss>

