<?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 conversion to Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477567#M1142530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date(Floor([Transaction Date]), 'DD/M/YYYY') as [Transaction Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would do this in the load script as you are bringing in the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 14:39:02 GMT</pubDate>
    <dc:creator>jpapador</dc:creator>
    <dc:date>2013-09-03T14:39:02Z</dc:date>
    <item>
      <title>Timestamp conversion to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477566#M1142529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have read other discussions on this subject, but none of the solutions seem to work for me.&lt;/P&gt;&lt;P&gt;I'm trying to convert data from a .xlsx table in the format 13/04/2013 14:35:00 +00:00 into a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script set statements currently include:&lt;/P&gt;&lt;P&gt;SET DateFormat='D/M/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='D/M/YYYY hh:mm:ss[.fff]';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you advise how i can get the data above (named [Transaction Date]) to be displayed as 13/4/2013 (also named as [Transaction Date])?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to qlikview &amp;amp; would really appreciate some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477566#M1142529</guid>
      <dc:creator />
      <dc:date>2013-09-03T14:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp conversion to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477567#M1142530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date(Floor([Transaction Date]), 'DD/M/YYYY') as [Transaction Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would do this in the load script as you are bringing in the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 14:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477567#M1142530</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-09-03T14:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp conversion to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477568#M1142531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This gives lexical element error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 19:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477568#M1142531</guid>
      <dc:creator />
      <dc:date>2014-02-06T19:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp conversion to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477569#M1142532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Chuck&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sounds like Microsoft ODBC error, not a QlikView one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you paste in the load script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 19:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477569#M1142532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-06T19:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp conversion to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477570#M1142533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The whole script is below....minus the ODBC connect string. I beleive I have tried every single thing that I could figure out on this site as a suggestion. What I need is something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;PBI."Submit Date", // --this is a timestamp field / column in SQL&lt;/P&gt;&lt;P&gt;Month(PBI."Submit Date") as Month,&lt;/P&gt;&lt;P&gt;Year(PBI."Submit Date) as Year, &lt;/P&gt;&lt;P&gt;FROM "PBM:Problem Investigation" PBI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;____________________________Original Below________________________________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&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;/P&gt;&lt;P&gt;load dual(String,Num) as Month inline&lt;/P&gt;&lt;P&gt;[String,Num&lt;/P&gt;&lt;P&gt;Jan,1&lt;/P&gt;&lt;P&gt;Feb,2&lt;/P&gt;&lt;P&gt;Mar,3&lt;/P&gt;&lt;P&gt;Apr,4&lt;/P&gt;&lt;P&gt;May,5&lt;/P&gt;&lt;P&gt;June,6&lt;/P&gt;&lt;P&gt;July,7&lt;/P&gt;&lt;P&gt;Aug,8&lt;/P&gt;&lt;P&gt;Sept,9&lt;/P&gt;&lt;P&gt;Oct,10&lt;/P&gt;&lt;P&gt;Nov,11&lt;/P&gt;&lt;P&gt;Dec,12&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBI:&lt;/P&gt;&lt;P&gt;SQL&amp;nbsp;&amp;nbsp; SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; PBI.Assignee,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Assigned Group",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Assignee Pblm Mgr", &lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Category",&lt;/P&gt;&lt;P&gt;&amp;nbsp; PBI."Assigned Group Pblm Mgr" as "PM Group", &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Description" as "Short Description",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Detailed Decription" as "Description",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."First Name",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."First Reported On",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTH(PBI."First Reported On") as "Month",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI.Impact,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Invesitgation Status Reason",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Investigation Driver",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Investigation Status" as Status,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Known Error Created",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Known Error Created Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Last Modified By",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Last Modified Date",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; month(Timestamp#(PBI.'Last Modified Date', 'MM/DD/YYYY hh:mm:ss')) as Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Last Name",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Organization",&lt;/P&gt;&lt;P&gt;&amp;nbsp; PBI."PBM_CI" as "Problem CI",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Prev Status-PBI" as "Previous Status",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI.Priority,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Problem Investigation ID" as "Ticket Number",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Product Name",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI.ServiceCI,&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Assigned.TIME" as "Assigned Time",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Cancelled.TIME",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Cancelled.USER",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Closed.TIME",&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Closed.USER",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Completed.TIME" as "Completed Time",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Completed.USER" as "Completed User",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Under Investigation.TIME" as "Investigation Time",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Under Investigation.USER" as "Investigation User",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Under Review.TIME" as "Under Review Time",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Status History.Under Review.USER" as "Under Review User",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Submit Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Submitter",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Support Group Name Requester",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Target Resolution Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI."Temporary Workaround" as "Workaround",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PBI.Urgency,&lt;/P&gt;&lt;P&gt;FROM "PBM:Problem Investigation" PBI&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;PBI."Investigation Status" not in ('Cancelled','Closed')&lt;/P&gt;&lt;P&gt;and "Assigned Group Pblm Mgr" in ('Problem Managers','USB PM Pblm Mgr - DEFAULT')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477570#M1142533</guid>
      <dc:creator />
      <dc:date>2014-02-06T20:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Timestamp conversion to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477571#M1142534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Chuck&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe what you need is a preceding load.&amp;nbsp; The below is a very stripped down version derived from your script, does it work for you ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;PBI:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;&amp;nbsp; Date(Floor([Last Modified Date]), 'DD/M/YYYY') as [Last Modified Date]&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;SQL&amp;nbsp; SELECT&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;&amp;nbsp; PBI."Last Modified Date" as "Last Modified Date"&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;FROM "PBM:Problem Investigation" PBI&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;WHERE&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;PBI."Investigation Status" not in ('Cancelled','Closed')&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;and "Assigned Group Pblm Mgr" in ('Problem Managers','USB PM Pblm Mgr - DEFAULT')&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;EM&gt;SQL SELECT&lt;/EM&gt; retrieves the data and then passes it up to the &lt;EM&gt;load&lt;/EM&gt; preceding it, which does the QlikView manipulation to return the pure date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477571#M1142534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-06T20:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Timestamp conversion to Date</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477572#M1142535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bill but I dont have a field PBI.&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;"Last Modified Date"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I tried the way you said and the way below and both errored out&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should it be like this&lt;/P&gt;&lt;P style="padding-left: 60px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;SQL&amp;nbsp; SELECT&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp; PBI."Submit Date" as "Last Modified Date",&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Where ....&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:33:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-conversion-to-Date/m-p/477572#M1142535</guid>
      <dc:creator />
      <dc:date>2014-02-06T20:33:39Z</dc:date>
    </item>
  </channel>
</rss>

