<?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: How to substract a second (or a minute) from a date field?!? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986284#M972953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I want to do the subtraction using a variable.. It's not a matter of a 'missing' time value - I just want to do a calculation on the value of a field within a record..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2015 06:55:47 GMT</pubDate>
    <dc:creator>hansdevr</dc:creator>
    <dc:date>2015-09-07T06:55:47Z</dc:date>
    <item>
      <title>How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986277#M972946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to fill a new field in a table with the date from a field in a previous record.&lt;/P&gt;&lt;P&gt;The latter contains a date in the following format: yyyy-mm-dd hh:mm:ss:xxxxxxx (not sure what those xx's are). Example:&lt;/P&gt;&lt;P&gt;2014-11-14 02:00:50:3930000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use that value in a (new) field in the current record, but I need to substract a second or a minute from that value.&lt;/P&gt;&lt;P&gt;I have been searching, but couldn't find an answer...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986277#M972946</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T06:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986278#M972947</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;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/62971"&gt;How to calculate the time difference between two different date?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the above link, it might help u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:41:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986278#M972947</guid>
      <dc:creator />
      <dc:date>2015-09-07T06:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986279#M972948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean when you say you have to subtract a second or a minute? In your above example: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2014-11-14 02:00:50:3930000 what would be the output you would be expecting?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986279#M972948</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T06:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986280#M972949</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;/P&gt;&lt;P&gt;it might help you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/66326"&gt;Subtract two timestamps to output difference in minutes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986280#M972949</guid>
      <dc:creator />
      <dc:date>2015-09-07T06:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986281#M972950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harshita and thank you for your swift reply.&lt;/P&gt;&lt;P&gt;I have looked at that link, and unfortunately, it gives an example on how to calculate a difference, not how to substract a value (of a second or a minute).&lt;/P&gt;&lt;P&gt;Thanks anyway! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986281#M972950</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T06:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986282#M972951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the first value is 2014-11-14 02:22:50:3930000 then the second value should be 2014-11-14 02:22:49:3930000&lt;/P&gt;&lt;P&gt;(which subtracts one second) OR the outcome should be 2014-11-14 02:21:50 3930000, which is the subtraction of a minute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:49:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986282#M972951</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T06:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986283#M972952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to create a master Time Table: &lt;A href="https://community.qlik.com/qlik-blogpost/3206"&gt;The Master Time Table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This works as a master calendar, where you create missing time values. You can decide your smallest denomination to be Seconds or Minute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986283#M972952</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T06:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986284#M972953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I want to do the subtraction using a variable.. It's not a matter of a 'missing' time value - I just want to do a calculation on the value of a field within a record..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986284#M972953</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T06:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986285#M972954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First set up format like&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; text-decoration: underline;"&gt;for Minutes Calculation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;vNowTime= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(timestamp#('2015/09/07&amp;nbsp; 11:55:25 PM','YYYY/MM/DD&amp;nbsp; hh:mm:ss TT'));&lt;/SPAN&gt;&lt;BR /&gt;vPrevTime = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(timestamp#('2015/09/07&amp;nbsp; 11:55:25 PM','YYYY/MM/DD&amp;nbsp; hh:mm:ss TT'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM style="color: #ff6600;"&gt;sum(&lt;SPAN style="font-size: 13.3333px;"&gt;vNowTime - &lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;EM style="color: #ff6600;"&gt;vPrevTime )&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vNowTime= &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(timestamp#(&lt;SPAN style="font-size: 13.3333px;"&gt;INVTIME&lt;/SPAN&gt;,'YYYY/MM/DD&amp;nbsp; hh:mm:ss TT'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vPrevTime = &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;num(timestamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;INVTIME&lt;/SPAN&gt;,'YYYY/MM/DD&amp;nbsp; hh:mm:ss TT'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;for Days Calculation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum(Date(Today())- date(date#(INVDATE,'YYYYMMDD'),'DD/MM/YYYY'))&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;hope it works &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986285#M972954</guid>
      <dc:creator />
      <dc:date>2015-09-07T06:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986286#M972955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit like AddMonths(EndDate,-1), but then for a minute or a second, if you catch my drift..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 06:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986286#M972955</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T06:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986287#M972956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Try this to subtract a second:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Timestamp(Timestamp#('2014-11-14 02:22:50:3930000', 'YYYY-MM-DD hh:mm:ss:fff') - Interval#('1', 'ss'), 'YYYY-MM-DD hh:mm:ss:fffffff')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;To subtract a minute, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=Timestamp(Timestamp#('2014-11-14 02:22:50:3930000', 'YYYY-MM-DD hh:mm:ss:fff') - Interval#('1', 'mm'), 'YYYY-MM-DD hh:mm:ss:fffffff'&lt;/STRONG&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 07:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986287#M972956</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T07:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986288#M972957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a subtraction, your solution worked best, Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now trying to implement this in a LOAD script.... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 07:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986288#M972957</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T07:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986289#M972958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: inherit; text-decoration: line-through;"&gt;vTimeStamp = Timestamp#('2014-11-14 02:22:50:3930000', 'YYYY-MM-DD hh:mm:ss:fff')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;vSubSeconds = &lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;Interval#('1', 'ss')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;vSubMinutes = &lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;Interval#('1', 'mm')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;vOutput1 = &lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;TimeStamp($(vTimeStamp) - $(vSubSeconds), &lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;'YYYY-MM-DD hh:mm:ss:fffffff')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;vOutput2 = &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: inherit; text-decoration: line-through;"&gt;TimeStamp($(vTimeStamp) - $(&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d; text-decoration: line-through;"&gt;vSubMinutes&lt;/SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; font-family: inherit; text-decoration: line-through;"&gt;'YYYY-MM-DD hh:mm:ss:fffffff')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; font-size: 13px; font-family: inherit; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vTimeStamp = Timestamp#('2014-11-14 02:22:50:3930000', 'YYYY-MM-DD hh:mm:ss:fff');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vSubSeconds = Interval#('1', 'ss');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vSubMinutes = Interval#('1', 'mm');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vOutput1 = TimeStamp($(vTimeStamp) - $(vSubSeconds), 'YYYY-MM-DD hh:mm:ss:fffffff');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vOutput2 = TimeStamp($(vTimeStamp) - $(vSubMinutes), 'YYYY-MM-DD hh:mm:ss:fffffff');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 07:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986289#M972958</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T07:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986290#M972959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much!! I am impressed with the speed this community responds to questions!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 07:39:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986290#M972959</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T07:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986291#M972960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually this will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vTimeStamp = Num(Timestamp#('2014-11-14 02:22:50:3930000', 'YYYY-MM-DD hh:mm:ss:fff'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vSubSeconds = Num(Interval#('1', 'ss'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vSubMinutes = Num(Interval#('1', 'mm'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vOutput1 = TimeStamp($(vTimeStamp) - $(vSubSeconds), 'YYYY-MM-DD hh:mm:ss:fffffff');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vOutput2 = TimeStamp($(vTimeStamp) - $(vSubMinutes), 'YYYY-MM-DD hh:mm:ss:fffffff');&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 07:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986291#M972960</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T07:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986292#M972961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your solution works, but not during a load script, in which I can't use your variable vTimeStamp..&lt;/P&gt;&lt;P&gt;Let's suppose I have this VERY simplified script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"creation_date"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM "blahblahblah"; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;And I would like to have it look something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"creation_date",&lt;BR /&gt;(subtract one minute from creation_date)&amp;nbsp;&amp;nbsp;&amp;nbsp; as "end_date_min",&lt;BR /&gt;(subtract one second from creation_date)&amp;nbsp;&amp;nbsp; as "end_date_sec"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt; FROM "blahblahblah"; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;(which is of course total nonsense script), how would I go about it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986292#M972961</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T08:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986293#M972962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Try this may be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #575757;"&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;"creation_date";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM "blahblahblah"; &lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;And I would like to have it look something like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;LOAD &lt;BR /&gt;"creation_date",&lt;BR /&gt;Timestamp(Timestamp#(creation_date, 'YYYY-MM-DD hh:mm:ss:fff') - Interval#('1', 'ss'), 'YYYY-MM-DD hh:mm:ss:fffffff')&amp;nbsp; as "end_date_sec",&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;Timestamp(Timestamp#(creation_date, 'YYYY-MM-DD hh:mm:ss:fff') - Interval#('1', 'mm'), 'YYYY-MM-DD hh:mm:ss:fffffff')&lt;/STRONG&gt;&amp;nbsp; as "end_date_min";&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt; SELECT *&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;FROM "blahblahblah";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Important thing to note here is that we are creating two new columns which are one second (end_date_sec) and one minute (end_date_min) behind creation_date for each row. Is this what you are looking to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986293#M972962</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T08:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986294#M972963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that is EXACTLY what I'm looking for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But alas, I got this when I looked at table example:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98183_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986294#M972963</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T08:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986295#M972964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your TimeStamp field is this format: &lt;STRONG&gt;hh:mm:ss.fffffff&lt;/STRONG&gt;?? no date attached to it? If this is how it is, then try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;LOAD &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;"creation_date";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;SQL SELECT *&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;FROM "blahblahblah"; &lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;And I would like to have it look something like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;LOAD &lt;BR /&gt;"creation_date",&lt;BR /&gt;Time(Time#(creation_date, 'hh:mm:ss:fff') - Interval#('1', 'ss'), 'hh:mm:ss:fffffff')&amp;nbsp; as "end_date_sec",&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt;"&gt;Time(Time#(creation_date, 'hh:mm:ss:fff') - Interval#('1', 'mm'), 'hh:mm:ss:fffffff')&lt;/STRONG&gt;&amp;nbsp; as "end_date_min";&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt; SELECT *&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: arial, helvetica, sans-serif; color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333320617676px; font-family: inherit;"&gt;FROM "blahblahblah";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986295#M972964</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-07T08:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to substract a second (or a minute) from a date field?!?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986296#M972965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still the same result...&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98184_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 08:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-substract-a-second-or-a-minute-from-a-date-field/m-p/986296#M972965</guid>
      <dc:creator>hansdevr</dc:creator>
      <dc:date>2015-09-07T08:59:45Z</dc:date>
    </item>
  </channel>
</rss>

