<?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: Re: Date comparison issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580311#M215613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='YYYY-MM-DD hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let d = num(timestamp#('3/16/2014 4:26:55 PM','M/D/YYYY h:m:s TT'));&lt;/P&gt;&lt;P&gt;let d1 = num('2014-03-16 16:26:55');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(d)&amp;lt;$(d1) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCompare='d minor than d1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;let vCompare='d Equal or bigger than d1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Mar 2014 02:23:31 GMT</pubDate>
    <dc:creator>hectorgarcia</dc:creator>
    <dc:date>2014-03-17T02:23:31Z</dc:date>
    <item>
      <title>Date comparison issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580309#M215611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I got two dates&lt;/P&gt;&lt;P&gt;set d = 3/16/2014 4:26:55 PM&lt;/P&gt;&lt;P&gt;set d1 = 2014-03-16 16:26:55&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to compare them.&lt;/P&gt;&lt;P&gt;I tried few things&lt;/P&gt;&lt;P&gt;if (Date($(d)) &amp;lt; Date($(d1)) // gives script line error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( $(d )&amp;lt; $(d1)) then // gives script line error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( (d )&amp;lt; (d1)) then // even though both dates are same it returns true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 01:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580309#M215611</guid>
      <dc:creator />
      <dc:date>2014-03-17T01:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580310#M215612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, first of all i sugest you to unify the date format management according the format variables you have defined in your script&lt;/P&gt;&lt;P&gt;check this example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 02:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580310#M215612</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2014-03-17T02:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Date comparison issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580311#M215613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='hh:mm:ss';&lt;/P&gt;&lt;P&gt;SET DateFormat='YYYY-MM-DD';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='YYYY-MM-DD hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let d = num(timestamp#('3/16/2014 4:26:55 PM','M/D/YYYY h:m:s TT'));&lt;/P&gt;&lt;P&gt;let d1 = num('2014-03-16 16:26:55');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if $(d)&amp;lt;$(d1) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vCompare='d minor than d1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;let vCompare='d Equal or bigger than d1';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 02:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580311#M215613</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2014-03-17T02:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Date comparison issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580312#M215614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET d = Timestamp(Timestamp#('3/16/2014 4:26:55 PM', 'M/D/YYYY h:m:s TT'))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET d1 = Timestamp(Timestamp#('2014-03-16 16:26:55', 'YYYY-MM-DD hh:mm:ss'))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now use this variables in script like this&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if ( $(d )&amp;lt; $(d1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Regards,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 02:44:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-comparison-issue/m-p/580312#M215614</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-17T02:44:16Z</dc:date>
    </item>
  </channel>
</rss>

