<?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: String to date/timestamp... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305202#M406329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your constant expression works but this is a field in the table.&lt;/P&gt;&lt;P&gt;Still getting null. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 22:04:16 GMT</pubDate>
    <dc:creator>markp201</dc:creator>
    <dc:date>2017-05-08T22:04:16Z</dc:date>
    <item>
      <title>String to date/timestamp...</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305200#M406327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following which qlik is interpreting as string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/1/2016 1:00:18PM&lt;/P&gt;&lt;P&gt;1/1/2016 1:02:33PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to reformat as MM/YY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=timestamp#(cr_timestamp,'M/D/YYYY h:mm:sstt') displays the same as the original&lt;/P&gt;&lt;P&gt;1/1/2016 1:00:18PM&lt;/P&gt;&lt;P&gt;1/1/2016 1:02:33PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(timestamp#(cr_timestamp,'M/D/YYYY h:mm:ssTT'),'MM/YYYY') displays null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date# function works but as soon as I apply any formatting, it return null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is one row which has "timestamp" in the field (including the double-quotes).&amp;nbsp; Is this the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 20:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305200#M406327</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-05-08T20:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: String to date/timestamp...</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305201#M406328</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;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: blue;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Arial',sans-serif; color: black;"&gt;('1/1/2016 1:00:18PM','DD/MM/YYYY h:mm:sstt'),'MM/YYYY') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 21:19:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305201#M406328</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-05-08T21:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: String to date/timestamp...</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305202#M406329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your constant expression works but this is a field in the table.&lt;/P&gt;&lt;P&gt;Still getting null. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 22:04:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305202#M406329</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-05-08T22:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: String to date/timestamp...</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305203#M406330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this script, it generates right format in front end - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Date(floor(Timestamp#(Date,'M/D/YYYY h:mm:sstt')),'MM/YYYY') as Date inline [&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;1/1/2016 1:00:18PM&lt;/P&gt;&lt;P&gt;1/1/2016 1:02:33PM&lt;/P&gt;&lt;P&gt;"2/1/2016 1:02:33PM" ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 23:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305203#M406330</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2017-05-08T23:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: String to date/timestamp...</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305204#M406331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as well&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) MonthName(Timestamp#('1/1/2016 1:00:18PM','D/M/YYYY hh:mm:ssTT'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Date(Timestamp#('1/1/2016 1:00:18PM','D/M/YYYY hh:mm:ssTT'),'MM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 00:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305204#M406331</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-05-09T00:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: String to date/timestamp...</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305205#M406332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, how are you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Could you try this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;Date&lt;/SPAN&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;Date#&lt;/SPAN&gt;(&lt;SPAN style="color: #ff0000;"&gt;DateTimeField&lt;/SPAN&gt;,'DD/MM/YYYY h:mm:sstt')&lt;/P&gt;&lt;P&gt;,'MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See you latter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christyan Almeida&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 03:01:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305205#M406332</guid>
      <dc:creator />
      <dc:date>2017-05-09T03:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: String to date/timestamp...</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305206#M406333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all for replies.&amp;nbsp; They were quite helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the following 1/1/2016 which seems odd&lt;/P&gt;&lt;P&gt;LEFT('1/1/2016 5:00:00PM',10) should be 1/1/2016 5&lt;/P&gt;&lt;P&gt;LEFT('1/10/2016 5:00:00PM',10) ok&lt;/P&gt;&lt;P&gt;LEFT('10/10/2016 5:00:00PM',10) ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any # function would be ok but any formatting would result in null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What worked was to use LEFT(field,10) for the date and RIGHT(field,10) for the time.&lt;/P&gt;&lt;P&gt;I've used datetime stamps before but suspect this had some non-display characters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 11:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-date-timestamp/m-p/1305206#M406333</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-05-10T11:02:55Z</dc:date>
    </item>
  </channel>
</rss>

