<?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 Date Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Function/m-p/164624#M37254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between the date and date# functions and the timestamp and timestamp# functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display just the year of a given date. How would I do that if I'm receiving data that looks like 05-25-2010 10:05? I am using the following expression but it doesn't work : Year(Date(Timestamp#([Last Updated],'MM/DD/YYYY hh:mm')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 15:37:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-17T15:37:05Z</dc:date>
    <item>
      <title>Date Function</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function/m-p/164624#M37254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the difference between the date and date# functions and the timestamp and timestamp# functions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display just the year of a given date. How would I do that if I'm receiving data that looks like 05-25-2010 10:05? I am using the following expression but it doesn't work : Year(Date(Timestamp#([Last Updated],'MM/DD/YYYY hh:mm')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function/m-p/164624#M37254</guid>
      <dc:creator />
      <dc:date>2010-08-17T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Date Function</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function/m-p/164625#M37255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date takes a number, Date# takes a string (I assume it is the same for Timestamp). Timestamp and Date both give you datetime type values. In your expression, you need to get rid of the Date function as Timestamp is already (kind of) a date.&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year(Timestamp#([Last Updated],'MM/DD/YYYY hh:mm'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;What format is Last Updated in? According to the format example given, you would want:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Year(Timestamp#([Last Updated],'MM-DD-YYYY hh:mm'))&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function/m-p/164625#M37255</guid>
      <dc:creator />
      <dc:date>2010-08-17T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Date Function</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Function/m-p/164626#M37256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is not quite true. You can use date('1/1/2001') and date#(39862). The difference is that date function returns a dual value with string and number implementation of the date. And # function tries to interpret the input parameter as a date and return a string or a number according to input parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 15:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Function/m-p/164626#M37256</guid>
      <dc:creator />
      <dc:date>2010-08-17T15:56:06Z</dc:date>
    </item>
  </channel>
</rss>

