<?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 - Timestamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746505#M266420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update? regards above attached screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 19:10:41 GMT</pubDate>
    <dc:creator>engishfaque</dc:creator>
    <dc:date>2015-03-05T19:10:41Z</dc:date>
    <item>
      <title>Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746499#M266414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to extract Max Date from attached file in a load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is my script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Floor(Max(TimeStamp#([date/time], 'DDMMMYYY:hh:mm:ss'))) AS MaxDate &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I reload the script then nothing is coming. My current input and required output is given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Date Format:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 182px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 137pt;" width="182"&gt;&lt;STRONG&gt;date/time&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;Mar 2, 2015 12:11:11 AM PST&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;Mar 2, 2015 12:11:22 AM PST&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Required Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;02/03/2015&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;02/03/2015 12:11:22 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly find attached file.&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>Thu, 05 Mar 2015 00:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746499#M266414</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-03-05T00:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746500#M266415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;had to strip off the timezone with&amp;nbsp; a mid() function. the rest you are on the right track:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp(DateTime,'DD/MM/YYYY hh:mm:ss tt') as DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date( floor(DateTime),'DD/MM/YYYY') as Date;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp#(&amp;nbsp; mid([date/time],1, len([date/time])-4) ,'MMM D, YYYY hh:mm:ss tt') as DateTime, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [settlement id], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [order id]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 00:46:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746500#M266415</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-05T00:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746501#M266416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your answer is right, can you explain little bit?&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>Thu, 05 Mar 2015 17:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746501#M266416</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-03-05T17:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746502#M266417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will extract the date and time portions separately&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;floor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date_value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'PST', ''), 'MMM D, YYYY hh:mm:ss TT'))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and this will extract the time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;frac&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date_value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'PST', ''), 'MMM D, YYYY hh:mm:ss TT'))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;or for both combined&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timestamp&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;date_value&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'PST', ''), 'MMM D, YYYY hh:mm:ss TT')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MMM is Month&lt;/P&gt;&lt;P&gt;D is day of Month&lt;/P&gt;&lt;P&gt;YYYY is year&lt;/P&gt;&lt;P&gt;hh is hour&lt;/P&gt;&lt;P&gt;mm is minute&lt;/P&gt;&lt;P&gt;ss seconds&lt;/P&gt;&lt;P&gt;TT is AM or PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The replace() removes the PST timezone&lt;/P&gt;&lt;P&gt;date# and time#&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; convert the string values to a date or time respectively&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 17:23:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746502#M266417</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-03-05T17:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746503#M266418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm going to store MaxDate field into variable using Let, then it's returning me decimal number instead of Max Date, such as illustrated in attached screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is a variable logic,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Find Last Modified Date - Preceding Load&lt;/P&gt;&lt;P&gt;LOAD //Timestamp(MaxDateTimestamp,'DD/MM/YYYY hh:mm:ss tt') as [date/time], // If you need Max Date with timestamp then uncomment this line&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Date(Floor(MaxDateTimestamp),'DD/MM/YYYY')) as MaxDate&lt;/P&gt;&lt;P&gt;Group By MaxDateTimestamp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Loading Data from QVD&lt;/P&gt;&lt;P&gt;Last_Updated_Date:&lt;/P&gt;&lt;P&gt;LOAD Max(Timestamp#(Mid([date/time], 1, Len([date/time])-4),'MMM D, YYYY hh:mm:ss tt')) as MaxDateTimestamp&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vFolderSourceData)QVDs\Sales.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Store Last Modified Date to a Variable&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;LET Last_Updated_Date = Peek('MaxDate', 0, 'Last_Updated_Date');&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Drop Table Sales&lt;/P&gt;&lt;P&gt;DROP Table Last_Updated_Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="maxdate.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80046_maxdate.png" style="font-size: 13.3333330154419px;" /&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>Thu, 05 Mar 2015 17:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746503#M266418</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-03-05T17:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746504#M266419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Sure,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;The first part is this expression.&amp;nbsp; I'm using mid() function to strip off the last 4 characters, in this case ' PST'.&amp;nbsp; Mid() will take the first characters up to the date length - 4. &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; mid([date/time],1, len([date/time])-4) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;so:&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mar 2, 2015 12:11:22 AM PST&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;turns into: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Mar 2, 2015 12:11:22 AM &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Then i interpret it as a timestamp which stores date and time . Timestamp# is an interpretive function so you use MMM for 'jan' , D for single or double digit days&amp;nbsp; like '1' or '12' (not 01) and so forth.&amp;nbsp; 'tt' means am or pm.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Timestamp#(&amp;nbsp; mid([date/time],1, len([date/time])-4) ,'MMM D, YYYY hh:mm:ss tt')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;the result needs to be formatted for output.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;In the preceding load i format i 2 ways:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Timestamp(DateTime,'DD/MM/YYYY hh:mm:ss tt') as DateTime ... renders as '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;02/03/2015 12:11:22 AM'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;And then here i use floor() which rounds the date down to a whole number. This is because dates in qlik are numeric and dates with times are numbers with decimals. So if you want to strip off the time, use floor()&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date( floor(DateTime),'DD/MM/YYYY') as Date .... renders as '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;02/03/2015'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Any help&amp;nbsp; ?&amp;nbsp; See the attached to help you with the D , M , Y etc..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 17:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746504#M266419</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-05T17:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746505#M266420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update? regards above attached screenshot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 19:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746505#M266420</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-03-05T19:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746506#M266421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I'm using following Let statment, then it's returning me number instead of date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;LET Last_Updated_Date = date#(Floor(Peek('MaxDate', 0, 'Last_Updated_Date')), 'DD/MM/YYYY');&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current out is 42065 instead of 02/03/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="maxdate2.png" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/80049_maxdate2.png" style="height: auto;" /&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>Thu, 05 Mar 2015 19:27:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746506#M266421</guid>
      <dc:creator>engishfaque</dc:creator>
      <dc:date>2015-03-05T19:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format - Timestamp</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746507#M266422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the variable use case , you need to apply Date() and Timestamp() after the max. So i changed my sample below to do that and capture the maxes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp(DateTime,'DD/MM/YYYY hh:mm:ss tt') as DateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date( floor(DateTime),'DD/MM/YYYY') as Date;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Timestamp#(&amp;nbsp; mid([date/time],1, len([date/time])-4) ,'MMM D, YYYY hh:mm:ss tt') as DateTime, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [settlement id], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [order id]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxDate:&lt;/P&gt;&lt;P&gt;load Timestamp(max(DateTime),'DD/MM/YYYY hh:mm:ss tt') as maxDateTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(max(Date),'DD/MM/YYYY') as maxDate&lt;/P&gt;&lt;P&gt;Resident Dates;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vMaxDateTime=peek('maxDateTime',0,'MaxDate');&lt;/P&gt;&lt;P&gt;let vMaxDate=peek('maxDate',0,'MaxDate');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 20:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Timestamp/m-p/746507#M266422</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-03-05T20:18:15Z</dc:date>
    </item>
  </channel>
</rss>

