<?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 Timeformat in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948070#M326404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stuck with a problem concerning times&lt;/P&gt;&lt;P&gt;I have two different end times&lt;/P&gt;&lt;P&gt;I need to test if first endtime lays behind second end time and then need to adjust it&lt;/P&gt;&lt;P&gt;so e.g. my first end time is 10:00, my second end time is 17:00&lt;/P&gt;&lt;P&gt;i read these Dates from a table using peek and store in variable&lt;/P&gt;&lt;P&gt;in script I define if (vtend &amp;gt; vwend, vtend=vwend)&lt;/P&gt;&lt;P&gt;with by times of 10:: as first end and 17:00 as second end, the condition Returns true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a TextBox with this Expression (for test purposes)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vTEnd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'hh:mm')&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vWEnd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'hh:mm'),1,0) &amp;amp; '-' &amp;amp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vTEnd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '-' &amp;amp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vWEnd &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I get this result &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104061_pastedImage_141.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where do I stuck? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2015 16:26:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-05T16:26:35Z</dc:date>
    <item>
      <title>Timeformat</title>
      <link>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948070#M326404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stuck with a problem concerning times&lt;/P&gt;&lt;P&gt;I have two different end times&lt;/P&gt;&lt;P&gt;I need to test if first endtime lays behind second end time and then need to adjust it&lt;/P&gt;&lt;P&gt;so e.g. my first end time is 10:00, my second end time is 17:00&lt;/P&gt;&lt;P&gt;i read these Dates from a table using peek and store in variable&lt;/P&gt;&lt;P&gt;in script I define if (vtend &amp;gt; vwend, vtend=vwend)&lt;/P&gt;&lt;P&gt;with by times of 10:: as first end and 17:00 as second end, the condition Returns true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a TextBox with this Expression (for test purposes)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vTEnd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'hh:mm')&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vWEnd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'hh:mm'),1,0) &amp;amp; '-' &amp;amp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vTEnd&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; '-' &amp;amp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vWEnd &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I get this result &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/104061_pastedImage_141.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where do I stuck? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948070#M326404</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Timeformat</title>
      <link>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948071#M326405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do your variables contain real time values? In other words should you use time() or time#().&lt;/P&gt;&lt;P&gt;And you can get rid of the if using the rangemin function: rangemin(vtend, vwend) as vtend&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948071#M326405</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-05T16:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timeformat</title>
      <link>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948072#M326406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good suggestion, I give rangemin a&amp;nbsp; try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 16:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948072#M326406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T16:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timeformat</title>
      <link>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948073#M326407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;curious Thing:&lt;/P&gt;&lt;P&gt; one endtime was derived from a date/time Format (like YYYYMMDD hh:mm:ss). I made a dozen of different formatting but didnot suceed (every Option I choosed, the TextBox showed the correct timeformat - and i only Need timeformat).&lt;/P&gt;&lt;P&gt;I got a hint, when I changed&amp;nbsp; the Format to num and was very much surprised that it gave me a huge number (something 42000) which should be the date. So even if I formatted to time(myfield,'hh:mm') it still kept the old Format?&lt;/P&gt;&lt;P&gt;So I used the fract function and it works as desired&lt;/P&gt;&lt;P&gt;I then made use of the proposal of Gysbert and used rangemin instead of if ..&lt;/P&gt;&lt;P&gt;I know that when formatting on Surface, it still keeps the old Format, but did not thought that in script it's the same behaviour.&lt;/P&gt;&lt;P&gt;Or am I wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 17:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timeformat/m-p/948073#M326407</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-05T17:29:35Z</dc:date>
    </item>
  </channel>
</rss>

