<?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 Variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Date-Variable/m-p/1805518#M65492</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;LET vReloadDate = Date(ReloadTime(),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;I have this variable stored in my app.&lt;/P&gt;&lt;P&gt;I have a number of flags for a report I am building, and I am trying to use the Date(ReloadTime(),'DD/MM/YYYY') as a variable in my load editor, but the results differentiate to when I use a hardcoaded&amp;nbsp;Date(ReloadTime(),'DD/MM/YYYY'). Please see examples below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;IF(Date(ZMEffectiveDate,'DD/MM/YYYY') &amp;gt; '$(vReloadDate)' ,0,1) as ZMBBNIVAL01, - This is what I tried when using the variable above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;IF(Date(ZMEffectiveDate,'DD/MM/YYYY') &amp;gt; Date(ReloadTime(),'DD/MM/YYYY'),0,1) as ZMBBNIVAL01, - This is when I hardcoded the Reload time instead of using the variable.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;The results shown from this is correct.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why I am trying to use as a variable, is because I want to add functionality where the user is able to amend the date which will change the results of the report if they would like to see past history.&lt;/P&gt;&lt;P&gt;Any understanding into why the variable is not working correctly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 15:08:24 GMT</pubDate>
    <dc:creator>QlikBeginner1</dc:creator>
    <dc:date>2021-05-05T15:08:24Z</dc:date>
    <item>
      <title>Date Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Variable/m-p/1805518#M65492</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;LET vReloadDate = Date(ReloadTime(),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;I have this variable stored in my app.&lt;/P&gt;&lt;P&gt;I have a number of flags for a report I am building, and I am trying to use the Date(ReloadTime(),'DD/MM/YYYY') as a variable in my load editor, but the results differentiate to when I use a hardcoaded&amp;nbsp;Date(ReloadTime(),'DD/MM/YYYY'). Please see examples below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;IF(Date(ZMEffectiveDate,'DD/MM/YYYY') &amp;gt; '$(vReloadDate)' ,0,1) as ZMBBNIVAL01, - This is what I tried when using the variable above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;IF(Date(ZMEffectiveDate,'DD/MM/YYYY') &amp;gt; Date(ReloadTime(),'DD/MM/YYYY'),0,1) as ZMBBNIVAL01, - This is when I hardcoded the Reload time instead of using the variable.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;The results shown from this is correct.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why I am trying to use as a variable, is because I want to add functionality where the user is able to amend the date which will change the results of the report if they would like to see past history.&lt;/P&gt;&lt;P&gt;Any understanding into why the variable is not working correctly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 15:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Variable/m-p/1805518#M65492</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2021-05-05T15:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Date-Variable/m-p/1805574#M65499</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/74945"&gt;@QlikBeginner1&lt;/a&gt;&amp;nbsp;, have you tried initializing your variable with SET instead of LET?&lt;/P&gt;&lt;P&gt;And in case of LET, you can try:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#008000"&gt;&lt;SPAN&gt;IF(Date(ZMEffectiveDate,'DD/MM/YYYY') &amp;gt; '$(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;/FONT&gt;vReloadDate)' ,0,1) as ZMBBNIVAL01&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please, pay attention to the equal sign.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JG&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 17:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Date-Variable/m-p/1805574#M65499</guid>
      <dc:creator>JuanGerardo</dc:creator>
      <dc:date>2021-05-05T17:23:48Z</dc:date>
    </item>
  </channel>
</rss>

