<?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: Datetime Format Convertion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803493#M283662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There aren't 13 months in a year, so the standard date format functions&amp;nbsp; date#() or makedate() will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to provide your own table that maps the year/period to a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use alt(expr1, expr2, exprN) to nest multiple expressions together, alt() will use the result from the first expression that returns a valid numeric value. As QlikView dates are dual values a correctly formatted date is seen as a number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2015 14:06:27 GMT</pubDate>
    <dc:creator>Colin-Albert</dc:creator>
    <dc:date>2015-02-13T14:06:27Z</dc:date>
    <item>
      <title>Datetime Format Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803490#M283659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlixperts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have three kind of date formats in a same aplication and the data sources are different&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. 201513&amp;nbsp; --- means 13th Week of 2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.2015-03-2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. 03/30/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to convert all these dates into a single format (Format number 3 &lt;SPAN style="font-size: 13.3333330154419px;"&gt;03/30/2015)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help meout to change the format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the format 1 (201513) basically i need to show the Monday's date of 13th month of the year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803490#M283659</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2015-02-13T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803491#M283660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wel you need date#() function to set the format and then use Date() function to make them the same.&lt;/P&gt;&lt;P&gt;Also do you need to make use of makedate to add in the day numbers.&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; line-height: 1.5em;"&gt;1. 201513&amp;nbsp; --- means 13th month of 2015&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; line-height: 1.5em;"&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; line-height: 1.5em;"&gt;You need 4 weeks periods to get an 13th period in your year. A 13 month doesn't exist so cannot be created.&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; line-height: 1.5em;"&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; line-height: 1.5em;"&gt;I this date a 13th period in the year?&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; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;2.2015-03-2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date(makedate(date(date#(&amp;lt;your field&amp;gt;, 'YYYY-MM-YYYY'),'YYYY'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date(date#(&amp;lt;your field&amp;gt;, 'YYYY-MM-YYYY'),'MM'), monthend(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;date(date#(&amp;lt;your field&amp;gt;, 'YYYY-MM-YYYY'),'YYYY-MM')&lt;/SPAN&gt;)), 'DD-MM-YYYY'') as Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;3. 03/30/2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date(date#(&amp;lt;your field&amp;gt;, 'DD/MM/YYYY'), 'DD-MM-YYYY')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 13:56:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803491#M283660</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-13T13:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803492#M283661</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;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;//1. 201513&amp;nbsp; --- means 13th month of 2015//&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Mybad it is 13th week of 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Varun&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803492#M283661</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2015-02-13T14:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803493#M283662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There aren't 13 months in a year, so the standard date format functions&amp;nbsp; date#() or makedate() will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to provide your own table that maps the year/period to a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use alt(expr1, expr2, exprN) to nest multiple expressions together, alt() will use the result from the first expression that returns a valid numeric value. As QlikView dates are dual values a correctly formatted date is seen as a number.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803493#M283662</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-02-13T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803494#M283663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATE(date#(makeweekdate(left(&amp;lt;your field&amp;gt;, 4), right(&amp;lt;your field&amp;gt;, 2)), 'YYYYMDD'), 'DD-MM-YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803494#M283663</guid>
      <dc:creator>Michiel_QV_Fan</dc:creator>
      <dc:date>2015-02-13T14:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Datetime Format Convertion</title>
      <link>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803495#M283664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Albert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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; Thanks for your reply &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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; It was a type (edited now)....&lt;/P&gt;&lt;P&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; It is13th week of the year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Datetime-Format-Convertion/m-p/803495#M283664</guid>
      <dc:creator>techvarun</dc:creator>
      <dc:date>2015-02-13T14:09:10Z</dc:date>
    </item>
  </channel>
</rss>

