<?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: Creating a timestamp from time and date correct it. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386915#M144486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There could be many things. &lt;/P&gt;&lt;P&gt;First, check if a Load mydate, mytime From Excel interprets the fields as numbers (which it should). If the field values are right-aligned, then they are probably correctly interpreted.&lt;/P&gt;&lt;P&gt;If not, you need to use the date#() and time#() functions.&lt;/P&gt;&lt;P&gt;Once they are correctly interpreted, you should create the timstamp using&lt;/P&gt;&lt;P&gt;timestamp(date#(mydate) + time#(mytime))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 13:48:34 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-01-02T13:48:34Z</dc:date>
    <item>
      <title>Creating a timestamp from time and date correct it.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386914#M144485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have in an excel a date and time in 2 fields. I want to correct the date to the next day if the time is betwean 00:00:00 and 00:04:00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As first i try to create a timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_data:&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;date(mydate),&lt;/P&gt;&lt;P&gt;time(mytime),&lt;/P&gt;&lt;P&gt;date(mydate) &amp;amp;time(mytime) as my_Time_timestamp&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Data.xlsx;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as result i get an empty fields for my_Time_timestamp. What did I wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 13:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386914#M144485</guid>
      <dc:creator>qlikconsultant</dc:creator>
      <dc:date>2013-01-02T13:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a timestamp from time and date correct it.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386915#M144486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There could be many things. &lt;/P&gt;&lt;P&gt;First, check if a Load mydate, mytime From Excel interprets the fields as numbers (which it should). If the field values are right-aligned, then they are probably correctly interpreted.&lt;/P&gt;&lt;P&gt;If not, you need to use the date#() and time#() functions.&lt;/P&gt;&lt;P&gt;Once they are correctly interpreted, you should create the timstamp using&lt;/P&gt;&lt;P&gt;timestamp(date#(mydate) + time#(mytime))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 13:48:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386915#M144486</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-01-02T13:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a timestamp from time and date correct it.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386916#M144487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(time(mytime&amp;lt;'04:00:00'), date(mydate+ 1), date(mydate)) as my_Time_timestamp,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 10:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386916#M144487</guid>
      <dc:creator>qlikconsultant</dc:creator>
      <dc:date>2013-01-04T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a timestamp from time and date correct it.</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386917#M144488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually use this solution but sometimes I need to force the date format as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;timestamp(date#(date(mydate)) + time#(time(mytime)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333339691162px;"&gt;Ag+&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Dec 2014 10:15:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-timestamp-from-time-and-date-correct-it/m-p/386917#M144488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-01T10:15:40Z</dc:date>
    </item>
  </channel>
</rss>

