<?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: How to parse a date/time field and use the time portion and date portion on a line chart? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-parse-a-date-time-field-and-use-the-time-portion-and-date/m-p/1253646#M25342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To extract date&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Floor(DateTimeField))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To extract time&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time(Frac(DateTimeField))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Dec 2016 19:12:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-30T19:12:48Z</dc:date>
    <item>
      <title>How to parse a date/time field and use the time portion and date portion on a line chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-parse-a-date-time-field-and-use-the-time-portion-and-date/m-p/1253645#M25341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a goal to use a line chart - time on the y axis and date on the x axis.&amp;nbsp; The format of the field is MMDDYYY hh:mm:ss tt.&amp;nbsp; So, the question is how to parse the field and use the time (example: 8:15 am) part and date&amp;nbsp; (example 12/30/2016) part on the line chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 18:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-parse-a-date-time-field-and-use-the-time-portion-and-date/m-p/1253645#M25341</guid>
      <dc:creator />
      <dc:date>2016-12-30T18:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a date/time field and use the time portion and date portion on a line chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-parse-a-date-time-field-and-use-the-time-portion-and-date/m-p/1253646#M25342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To extract date&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Floor(DateTimeField))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To extract time&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time(Frac(DateTimeField))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 19:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-parse-a-date-time-field-and-use-the-time-portion-and-date/m-p/1253646#M25342</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-30T19:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse a date/time field and use the time portion and date portion on a line chart?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-parse-a-date-time-field-and-use-the-time-portion-and-date/m-p/1253647#M25343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌ replied, this is what you can use to get Date and Time from a DateTime Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only issue is .. as you mentioned that your DateTime Field is in MMDDYYYY hh:mm:ss tt ( I am assuming that you forgot one Y while mentioning DateTime format).. your TimestampFormat must be defined same.&lt;/P&gt;&lt;P&gt;SET TimestampFormat='MMDDYYYY hh:mm:ss TT';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not the case, you have to use Interpretation and Formatting functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Floor(TimeStamp#(DateTimeField,'MMDDYYYY hh:mm:ss TT'))) as Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Time(Frac(TimeStamp#(DateTimeField,'MMDDYYYY hh:mm:ss TT'))) as Time&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through below link which will give you knowledge of these functions as well as how to get Date and Time field from DateTime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2811"&gt;Primer for QlikView Date fields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ha&lt;SPAN style="font-size: 10pt;"&gt;ppy Qliking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Dec 2016 19:26:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-parse-a-date-time-field-and-use-the-time-portion-and-date/m-p/1253647#M25343</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-30T19:26:07Z</dc:date>
    </item>
  </channel>
</rss>

