<?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: Why do I have to convert date differently depending upon the User? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754592#M590969</link>
    <description>&lt;P&gt;First check how OSUSER() is getting in published? Normally, Publisher holds with Internal Domain tag as well&lt;/P&gt;&lt;P&gt;And the other thing, is Second part of condition, Is that returning anything?&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 16:00:26 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2020-10-21T16:00:26Z</dc:date>
    <item>
      <title>Why do I have to convert date differently depending upon the User?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754577#M590968</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've never seen this before but ran into this interesting situation where it matters if I run script as my local desktop user or if I run it as my QV Publisher user.&lt;/P&gt;&lt;P&gt;The date field is stored into Sql Server as a 'date' field...so it looks like this. 2020-01-02.&lt;/P&gt;&lt;P&gt;What has happened (and I totally don't understand it) is that.&lt;/P&gt;&lt;P&gt;If I run script on desktop (server credential'd), "developer" credentials&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date(Date#,'YYYY-MM-DD'),'M/D/YYYY') returns&amp;nbsp; 1/2/2020.&lt;/P&gt;&lt;P&gt;If I run script on QV Publisher, but using the Publisher's credentials&lt;/P&gt;&lt;P&gt;Date(Date#,'YYYY-MM-DD'),'M/D/YYYY') returns&amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(a null or dash or whaterver you wanna call it).&lt;/P&gt;&lt;P&gt;What was happening is I built all my scripts...they run...I put them in publisher and they fail.&lt;/P&gt;&lt;P&gt;I then put this code in place and it works...the blurred text is my "developer" credentials.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brooksc57_0-1603291588813.png" style="width: 1261px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42727i2D93CF2EFDCFCEDA/image-dimensions/1261x33?v=v2" width="1261" height="33" role="button" title="brooksc57_0-1603291588813.png" alt="brooksc57_0-1603291588813.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BUT WHY???&amp;nbsp; I just don't get it.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 15:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754577#M590968</guid>
      <dc:creator>brooksc57</dc:creator>
      <dc:date>2020-10-21T15:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I have to convert date differently depending upon the User?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754592#M590969</link>
      <description>&lt;P&gt;First check how OSUSER() is getting in published? Normally, Publisher holds with Internal Domain tag as well&lt;/P&gt;&lt;P&gt;And the other thing, is Second part of condition, Is that returning anything?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 16:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754592#M590969</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-10-21T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I have to convert date differently depending upon the User?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754609#M590970</link>
      <description>&lt;P&gt;(D User) = Local Desktop with Server rights, OSUser()=Domain\MyUser&amp;nbsp; -&amp;nbsp; user has admin rights on the server&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(P User) = Server Desktop and Publisher,&amp;nbsp; OSUser()=Domain\ServiceUser - admin service account on the server&lt;/P&gt;&lt;P&gt;not sure what you mean by "is second part of condition".&lt;/P&gt;&lt;P&gt;When running on the Server Itself with Service User Account... (P User) as I referenced above.&lt;/P&gt;&lt;P&gt;returns NULL with&amp;nbsp; DATE(DATE#(InvDate,'YYYY-MM-DD'),'M/D/YYYY')&lt;/P&gt;&lt;P&gt;returns 1/2/2020 with&amp;nbsp;DATE(InvDate,'M/D/YYYY')&lt;/P&gt;&lt;P&gt;When running with the (D User) as I referenced above.&lt;/P&gt;&lt;P&gt;returns 1/2/2020 with&amp;nbsp; DATE(DATE#(InvDate,'YYYY-MM-DD'),'M/D/YYYY')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 16:35:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754609#M590970</guid>
      <dc:creator>brooksc57</dc:creator>
      <dc:date>2020-10-21T16:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I have to convert date differently depending upon the User?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754615#M590971</link>
      <description>&lt;P&gt;just realized what you were referencing, sorry.&lt;/P&gt;&lt;P&gt;Yes the second part of the condition returns 1/2/2020 when running it on the Service itself via QV Desktop or QV Publisher as the OSUser()=Domain\ServiceUser&amp;nbsp; &amp;nbsp;account.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 16:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754615#M590971</guid>
      <dc:creator>brooksc57</dc:creator>
      <dc:date>2020-10-21T16:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I have to convert date differently depending upon the User?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754618#M590972</link>
      <description>&lt;P&gt;Publisher has some Date format capable. But, You case is generic what I resume.&lt;/P&gt;&lt;P&gt;1) Check in different browsers&lt;/P&gt;&lt;P&gt;2) What version you are using&lt;/P&gt;&lt;P&gt;3) Is that IE or AJAX&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 16:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1754618#M590972</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-10-21T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I have to convert date differently depending upon the User?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1758584#M590973</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44254"&gt;@brooksc57&lt;/a&gt;&amp;nbsp;The only other thing that comes to mind is something with the service account setup on the server is looking at a different environment variable or something related to date formatting, so may want to check that out too, only thing that came to mind that might explain things, Regional Settings is what I am think of I think.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 18:36:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1758584#M590973</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-11-04T18:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why do I have to convert date differently depending upon the User?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1759008#M590974</link>
      <description>&lt;P&gt;Probably your app missed the various interpreting-variables which are automatically generated within the script-tab "Main" (of course they could be manually changed, out-sourced, deleted). If they don't exists Qlik takes OS settings and they might be different between your local machine and the server.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 16:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-do-I-have-to-convert-date-differently-depending-upon-the/m-p/1759008#M590974</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-11-05T16:37:26Z</dc:date>
    </item>
  </channel>
</rss>

