<?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: Date format variable acts differently in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148920#M375679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake ... missing the quotes around the variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2016 05:16:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-26T05:16:20Z</dc:date>
    <item>
      <title>Date format variable acts differently</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148919#M375678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt; I am facing some challenges with date format.&lt;/P&gt;&lt;P&gt; I have a variable that keeps the max date of a field vMcin&amp;nbsp; defined as "= max(CI_Date)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any time I use this for comparison in expression it works fine&lt;/P&gt;&lt;P&gt;ex. &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt; &lt;SPAN style="color: #993300;"&gt;CI_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(vMcin)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CENTRE_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But does not format in text boxes or in the list expression&lt;/P&gt;&lt;P&gt;ex.&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;Date&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;$(&lt;SPAN style="color: #800000;"&gt;vMcin&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MM-DD-YYYY')&amp;nbsp; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; this gives &lt;SPAN style="color: #ff0000;"&gt;12-30-1899&lt;/SPAN&gt; where as &lt;SPAN style="color: #339966;"&gt;1-02-2016&lt;/SPAN&gt;&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: #800000; font-size: 8pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Did not sumbit' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="color: #993300;"&gt;CI_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(&lt;SPAN style="color: #800000;"&gt;vMcin&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/STRONG&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[C Name]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use the variable directly in a textbox it displays 0.00024801587301587&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Aji Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 23:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148919#M375678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T23:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date format variable acts differently</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148920#M375679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake ... missing the quotes around the variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 05:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148920#M375679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T05:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date format variable acts differently</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148921#M375680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this . It's Working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(vMcin,'MM-DD-YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 09:31:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148921#M375680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T09:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date format variable acts differently</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148922#M375681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the first point is never define a variable like this with '='&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define it like &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;max(CI_Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the expression u can use &lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;({$&amp;lt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10.6667px; font-family: inherit; color: #993300;"&gt;CI_Date&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;"=$(=vMcin)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;CENTRE_CODE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in text box :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;=Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(date#(&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10.6667px; font-family: inherit; color: #800000;"&gt;vMcin&lt;/SPAN&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,'date-format')'MM-DD-YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;here first with dat3 read the format of the date it is in and then convert it to date .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 09:36:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148922#M375681</guid>
      <dc:creator />
      <dc:date>2016-05-26T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date format variable acts differently</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148923#M375682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Khushboo,&lt;/P&gt;&lt;P&gt;Thanks for your response&lt;/P&gt;&lt;P&gt;'=' is needed in my case&amp;nbsp; as I do not want it to get changed. This is NOT a function variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue was I missed out on quotes around while using the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2016 01:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-variable-acts-differently/m-p/1148923#M375682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-27T01:44:40Z</dc:date>
    </item>
  </channel>
</rss>

