<?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: Timestamp Comparison to Standard Timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755992#M662744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick.&amp;nbsp; Thank you Massimo!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 20:48:50 GMT</pubDate>
    <dc:creator>asmithids</dc:creator>
    <dc:date>2015-02-19T20:48:50Z</dc:date>
    <item>
      <title>Timestamp Comparison to Standard Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755988#M662740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to add a background color based on whether a timestamp is before or after 12:00PM.&amp;nbsp; If the timestamp is before 12:00PM, the background color will be Red().&amp;nbsp; If the timestamp is after 12:00PM the color will be Green().&amp;nbsp; The issue is how do I evaluate the timestamp to compare to my standard of 12:00PM?&amp;nbsp; Below is what I came up with, but it's not working.&amp;nbsp; I know the issue is in the "&lt;SPAN style="color: #0433ff;"&gt;Timestamp&lt;/SPAN&gt;('12:00','hh:mm')," portion of the expression.&amp;nbsp; Thank you in advance for any assistance on this issue.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0433ff;"&gt;If&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Timestamp&lt;/SPAN&gt;(&lt;SPAN style="color: #941100;"&gt;Date&lt;/SPAN&gt; ,'hh:mm')&amp;lt;=&lt;SPAN style="color: #0433ff;"&gt;Timestamp&lt;/SPAN&gt;('12:00','hh:mm'),&lt;SPAN style="color: #0433ff;"&gt;Red&lt;/SPAN&gt;(), Green()) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755988#M662740</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-02-19T20:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Comparison to Standard Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755989#M662741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #941100;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;is a &lt;EM&gt;datetime&lt;/EM&gt; field then trying &lt;EM&gt;frac&lt;/EM&gt; 'ing it :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;Timestamp&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(frac(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #941100;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; ,'hh:mm'))&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;Timestamp&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;('12:00','hh:mm'),&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;Red&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;(), Green())&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755989#M662741</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-19T20:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Comparison to Standard Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755990#M662742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe with hour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(hour(date) &amp;lt;= 12, ..., ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755990#M662742</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-19T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Comparison to Standard Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755991#M662743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to convert the TimeStamp in Time Format before comparing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Time(Frac(TImeStamp(NOW())),'hh:mm')&amp;gt;=Time#('12:00','hh:mm'),GREEN(),RED())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use your TimeStamp Field instead of NOW()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755991#M662743</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-02-19T20:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Comparison to Standard Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755992#M662744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That did the trick.&amp;nbsp; Thank you Massimo!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 20:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755992#M662744</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-02-19T20:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Comparison to Standard Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755993#M662745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Manish.&amp;nbsp; I can use this on other apps.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 21:32:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-to-Standard-Timestamp/m-p/755993#M662745</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2015-02-19T21:32:08Z</dc:date>
    </item>
  </channel>
</rss>

