<?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 issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914887#M317327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here testdate3 will be still have the timestamp, but will only show Date. And testdate4 will only be Date (time floored to 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Aug 2015 07:14:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-07T07:14:54Z</dc:date>
    <item>
      <title>date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914885#M317325</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;I have some dates in an xml file which are in the format d.m.yyyy hh:mm:ss. An example date is 1.6.2015 21:13:54. Now I want to show this date in the default format of my Qlikview document so that I have converted them like this in the Qlikview script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14389312976553686" jivemacro_uid="_14389312976553686" modifiedtitle="true"&gt;
&lt;P&gt;Date#(StartedAt,'dd.mm.yyyy hh:mm:ss') as testdate1,&lt;/P&gt;
&lt;P&gt;date(Date#(StartedAt,'dd.mm.yyyy hh:mm:ss')) as testdate2,&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This first one is without casting to date, and the second one is to cast it into local document format. However, when I check the document, they don't seem to be converted correctly. For example, please see the attached image&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="95300" alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/95300_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please tell me how to correct covert them into local document date format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914885#M317325</guid>
      <dc:creator />
      <dc:date>2015-08-07T07:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914886#M317326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#(Trim(StartedAt), 'dd.mm.yyyy hh:mm:ss')) as testdate3,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Date(Floor(Date#(Trim(StartedAt), 'dd.mm.yyyy hh:mm:ss'))) as testdate4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914886#M317326</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T07:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914887#M317327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here testdate3 will be still have the timestamp, but will only show Date. And testdate4 will only be Date (time floored to 0).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914887#M317327</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T07:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914888#M317328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;already tried this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14389317160191436 jive_text_macro" jivemacro_uid="_14389317160191436"&gt;
&lt;P&gt;Date#(trim(StartedAt),'dd.mm.yyyy hh:mm:ss') as testdate1,&lt;/P&gt;
&lt;P&gt;date(Date#(trim(StartedAt),'dd.mm.yyyy h:m:s')) as testdate2,&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:15:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914888#M317328</guid>
      <dc:creator />
      <dc:date>2015-08-07T07:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914889#M317329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that I need to convert them to default document timestamp without flooring the time part as I need it in timestamp format of the document default&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914889#M317329</guid>
      <dc:creator />
      <dc:date>2015-08-07T07:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914890#M317330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;What I suggested is different &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Your:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-style: inherit; background-color: inherit; font-family: arial, helvetica, sans-serif; font-weight: inherit;"&gt;&lt;STRONG&gt;Date#(trim(StartedAt),'dd.mm.yyyy hh:mm:ss') as testdate1,&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 10pt; font-family: arial, helvetica, sans-serif; background-color: inherit;"&gt;&lt;STRONG&gt;date(Date#(trim(StartedAt),'dd.mm.yyyy &lt;SPAN style="color: #ff0000;"&gt;h:m:s&lt;/SPAN&gt;')) as testdate2,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;vs. Mine:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Date(Date#(Trim(StartedAt), 'dd.mm.yyyy &lt;SPAN style="color: #ff0000;"&gt;hh:mm:ss&lt;/SPAN&gt;')) as testdate3,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;&lt;STRONG style=": ; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Date(Floor(Date#(Trim(StartedAt), 'dd.mm.yyyy hh:mm:ss'))) as testdate4&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914890#M317330</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T07:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914891#M317331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;TimeStamp&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;TimeStamp&lt;/SPAN&gt;#(Trim(StartedAt), 'dd.mm.yyyy hh:mm:ss')) as testdate5,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:18:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914891#M317331</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-07T07:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914892#M317332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In any case, it is still returning the same result even after flooring the time part as you suggested. I already tried trimming the string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914892#M317332</guid>
      <dc:creator />
      <dc:date>2015-08-07T07:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914893#M317333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try' DD.MM.YYYY hh:mm:ss'&lt;/P&gt;&lt;P&gt;mm is minutes&lt;/P&gt;&lt;P&gt;MM is Month&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914893#M317333</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-08-07T07:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914894#M317334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yup, still no difference in the result &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:20:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914894#M317334</guid>
      <dc:creator />
      <dc:date>2015-08-07T07:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914895#M317335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set variable in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET TimestampFormat='DD.MM.YYYY hh:mm:ss';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now load the field as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=timestamp(timestamp#(&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;StartedAt,'DD.MM.YYYY hh:mm:ss'))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914895#M317335</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-07T07:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914896#M317336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That seems to have done the trick. Thanks Antonio and Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914896#M317336</guid>
      <dc:creator />
      <dc:date>2015-08-07T07:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: date format issue</title>
      <link>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914897#M317337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;However, whe You have Timestamp Format it is advisable to use Floor() function to extract Date&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Floor&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;TimeStamp#&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('1.6.2015 12:01:01','DD.MM.YYYY hh:mm:ss'))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;because this doesn't need Windows Apis &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 07:43:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/date-format-issue/m-p/914897#M317337</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-08-07T07:43:31Z</dc:date>
    </item>
  </channel>
</rss>

