<?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: TimeStamp# wont work in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998488#M82689</link>
    <description>&lt;P&gt;it did not work, i dont seem to know why,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in my oracle query it is written like this ( to_char(my_Date , 'YYYY-MM_DD HH24:Mi:SS') my_date&lt;/P&gt;
&lt;P&gt;and when i try to change it in oracle (to_Date) it gives random dates&lt;/P&gt;
&lt;P&gt;does it affect the casting to timestamp in qlik ?&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 08:33:19 GMT</pubDate>
    <dc:creator>Saif1</dc:creator>
    <dc:date>2022-10-31T08:33:19Z</dc:date>
    <item>
      <title>TimeStamp# wont work</title>
      <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998482#M82687</link>
      <description>&lt;P&gt;I have a timestamp want to change it into a date&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MY_DATE : 2010-03-29 09:47:30&lt;/P&gt;
&lt;P&gt;am using this in load editior :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;date(floor(Timestamp#(MY_DATE,'YYYY-MM-DD hh:mm:ss')),'YYYY-MM-DD') as NEW_DATE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This gives me a " - " in the model viewer any help ? am i getting the format wrong ?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 08:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998482#M82687</guid>
      <dc:creator>Saif1</dc:creator>
      <dc:date>2022-10-31T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: TimeStamp# wont work</title>
      <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998484#M82688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164519"&gt;@Saif1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this -&amp;nbsp;&lt;BR /&gt;Date(Floor(Timestamp(Timestamp#(&lt;SPAN&gt;MY_DATE&lt;/SPAN&gt;,'YYYY-MM-DD hh:mm:ss')))) as&amp;nbsp;&lt;SPAN&gt;NEW_DATE&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MendyS_0-1667204509580.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/92473i86C1929630536C5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MendyS_0-1667204509580.png" alt="MendyS_0-1667204509580.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 08:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998484#M82688</guid>
      <dc:creator>MendyS</dc:creator>
      <dc:date>2022-10-31T08:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: TimeStamp# wont work</title>
      <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998488#M82689</link>
      <description>&lt;P&gt;it did not work, i dont seem to know why,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in my oracle query it is written like this ( to_char(my_Date , 'YYYY-MM_DD HH24:Mi:SS') my_date&lt;/P&gt;
&lt;P&gt;and when i try to change it in oracle (to_Date) it gives random dates&lt;/P&gt;
&lt;P&gt;does it affect the casting to timestamp in qlik ?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 08:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998488#M82689</guid>
      <dc:creator>Saif1</dc:creator>
      <dc:date>2022-10-31T08:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: TimeStamp# wont work</title>
      <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998493#M82690</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/164519"&gt;@Saif1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first, you can make quick tests on the UI of the expression&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MendyS_1-1667205395043.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/92475i3FFA0893272047B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MendyS_1-1667205395043.png" alt="MendyS_1-1667205395043.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;second, can you send a screenshot from the data model viewer on this field?&amp;nbsp; I want to see which format QLIK gives to this field...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MendyS_2-1667205529119.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/92476i75D5846B57B94AD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MendyS_2-1667205529119.png" alt="MendyS_2-1667205529119.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 08:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998493#M82690</guid>
      <dc:creator>MendyS</dc:creator>
      <dc:date>2022-10-31T08:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: TimeStamp# wont work</title>
      <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998498#M82691</link>
      <description>&lt;P&gt;The field &lt;STRONG&gt;"MY_DATE" is&amp;nbsp;&lt;/STRONG&gt; already formatted as timestamp in the database&lt;/P&gt;
&lt;P&gt;so if your load statements looks like below, then you won't need to reformat it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Date(floor(MY_DATE)) as new_Date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;SPAN&gt;dim1,dim2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;SQL Select&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;MY_DATE&lt;/FONT&gt;,&lt;/STRONG&gt;dim1,dim2&lt;STRONG&gt; from somedbtable;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if you are converting the MY_DATE field as To_Char()&amp;nbsp; in your SQL, only then you would need to convert it&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Date(floor(timestamp#(MY_DATE,'format'))) as new_Date&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;SPAN&gt;dim1,dim2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;SQL Select &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;to_cha&lt;FONT color="#FF6600"&gt;r&lt;/FONT&gt;&lt;/STRONG&gt;(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;MY_DATE,'format')&lt;/FONT&gt;,&lt;/STRONG&gt;dim1,dim2&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;from somedbtable;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 08:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998498#M82691</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-10-31T08:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: TimeStamp# wont work</title>
      <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998510#M82692</link>
      <description>&lt;P&gt;the problem was from the oracle query itself, i fixed it then it worked in qlik , thanks all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998510#M82692</guid>
      <dc:creator>Saif1</dc:creator>
      <dc:date>2022-10-31T09:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: TimeStamp# wont work</title>
      <link>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998512#M82693</link>
      <description>&lt;P&gt;1: Load "&lt;SPAN&gt;MY_DATE" as it is in the Qlik load query&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2: print in a textbox/ kpi/ filter&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3: try printing floor(MY_DATE) if it is a number floor it and apply date&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4: if floor() doesn't work try&amp;nbsp;date(floor(Timestamp#(text(MY_DATE),'YYYY-MM-DD hh:mm:ss')),'YYYY-MM-DD')&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TimeStamp-wont-work/m-p/1998512#M82693</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2022-10-31T09:22:36Z</dc:date>
    </item>
  </channel>
</rss>

