<?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 in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775867#M275075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rdsuperlike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(Num#(YourDateFieldName),'DD/MM/YYYY') as NewDateField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(Num(YourDateFieldName),'DD/MM/YYYY') as NewDateField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2015 04:38:19 GMT</pubDate>
    <dc:creator>engishfaque</dc:creator>
    <dc:date>2015-01-28T04:38:19Z</dc:date>
    <item>
      <title>Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775859#M275067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to display date. I can see it as date format in the table box but when I do the selection it shows the number.&lt;/P&gt;&lt;P&gt;What should I do to the due_dt to get the date values here. I tried&lt;/P&gt;&lt;P&gt;Floor(date(DMND_DUE_DT)) in the script. But vouldnt get the results.&lt;/P&gt;&lt;P&gt;Any inputs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76399_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76403_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775859#M275067</guid>
      <dc:creator>rdsuperlike</dc:creator>
      <dc:date>2015-01-27T19:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775860#M275068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try without floor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775860#M275068</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-27T19:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775861#M275069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your table showing a date because you have formatted it specifically? You can set at a document level by using Settings - Document Properties - Number tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775861#M275069</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2015-01-27T19:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775862#M275070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed you don't have a format specified in your "date" command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar situation; clients login at all times, and 'dlogin' captures the date and time they logged in. One corporate user wanted to be able to select a 'day'. Most days, we have 1000's of client logins, so just giving a list box of "dlogin" wouldn't work. I used:&lt;/P&gt;&lt;P&gt;date(floor(dlogin),'MM-DD-YY') &amp;lt;- that's our standard date representation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Came out perfect in the list box, but when you select a date, you see "4981 of 3756453'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, I would suggest adding the date format, in whatever format you want, to the expression. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775862#M275070</guid>
      <dc:creator />
      <dc:date>2015-01-27T19:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775863#M275071</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;maybe you just formatted the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;DMND_DUE_DT&lt;/SPAN&gt; (or the result of your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Floor(date(DMND_DUE_DT))&lt;/SPAN&gt; expression) as date in some front end objects instead of loading the field as date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_149773_Pic1.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76407_QlikCommunity_Thread_149773_Pic1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_149773_Pic2.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76408_QlikCommunity_Thread_149773_Pic2.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to format the field using the Date function in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14223910533794585" jivemacro_uid="_14223910533794585"&gt;
&lt;P&gt;LOAD Date(DMND_DUE_DT) as DMND_DUE_DT,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DMND_DUE_DT as DMND_DUE_DT2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DMND_DUE_DT as DMND_DUE_DT3&lt;/P&gt;
&lt;P&gt;Inline [&lt;/P&gt;
&lt;P&gt;DMND_DUE_DT&lt;/P&gt;
&lt;P&gt;42196&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your script expression:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14223911815771457" jivemacro_uid="_14223911815771457"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Floor(date(DMND_DUE_DT))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;it calculates the integer part of the numerical value of the DMND_DUE_DT field and returns a number, not a date. The date() function within the Floor() function in the other hand just formats the already exisiting numerical representation of this field and has no effect, because Floor() will still return a number.&lt;/P&gt;&lt;P&gt;So just try the other way around:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14223914090736718" jivemacro_uid="_14223914090736718"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(Floor(DMND_DUE_DT))&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;(only makes sense if DMND_DUE_DT is a timestamp instead of a date, i.e. it has a fractional (=time) part)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:44:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775863#M275071</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-27T20:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775864#M275072</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;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"4981 of 3756453' in your current selections box means 4981 field values of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;3756453 existing values are selected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Showing all those 4981 values otherwise would require a very large box ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="QlikCommunity_Thread_149773_Pic3.JPG" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76409_QlikCommunity_Thread_149773_Pic3.JPG" style="height: 297px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="QlikCommunity_Thread_149773_Pic4.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76410_QlikCommunity_Thread_149773_Pic4.JPG" style="height: 290px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 21:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775864#M275072</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-01-27T21:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775865#M275073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please excuse me for giving the impression I didn't understand what "4819 of 365675" meant. I know perfectly well what it means, and I was highlighting that for the original poster's edification, since at the time it appeared he had multiple items on each day. Now that he has explained in more detail what his data looks like, this wouldn't be an issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 21:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775865#M275073</guid>
      <dc:creator />
      <dc:date>2015-01-27T21:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775866#M275074</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;You should not use Floor() as outer function instead you can use like below to round off to date.&amp;nbsp; Floor() will round off to the lower integer and converts it to the number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Date(Floor(Date)) AS Date_Formatted&lt;/P&gt;&lt;P&gt;FROM DataSource;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 03:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775866#M275074</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-01-28T03:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date format in script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775867#M275075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Rdsuperlike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(Num#(YourDateFieldName),'DD/MM/YYYY') as NewDateField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(Num(YourDateFieldName),'DD/MM/YYYY') as NewDateField&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Ishfaque Ahmed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2015 04:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-in-script/m-p/775867#M275075</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-01-28T04:38:19Z</dc:date>
    </item>
  </channel>
</rss>

