<?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 Conversion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171243#M891797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interval(makedate( subfield('000 8:22:13', ' ', 1) + 4000, subfield(subfield('000 8:22:13', ' ', 2), ':', 1)-1, subfield(subfield('000 8:22:13', ' ', 2), ':', 2)-1) + num#(subfield(subfield('000 8:22:13', ' ', 2), ':', 3))/1440 , 'mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 07:36:22 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-08-11T07:36:22Z</dc:date>
    <item>
      <title>Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171242#M891796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting date in below format :&lt;/P&gt;&lt;P&gt;Explanation of date field format :- 1/1/4000 = 0 days &lt;/P&gt;&lt;P&gt;(1st octet is month, 2nd Octet is days and 3rd Octet is hours).&lt;/P&gt;&lt;P&gt;For eg: 000 8:22:13 (7 months, 21 days, 13 hrs)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;This is required to be converted to standard format in minutes i.e(mm)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171242#M891796</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171243#M891797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interval(makedate( subfield('000 8:22:13', ' ', 1) + 4000, subfield(subfield('000 8:22:13', ' ', 2), ':', 1)-1, subfield(subfield('000 8:22:13', ' ', 2), ':', 2)-1) + num#(subfield(subfield('000 8:22:13', ' ', 2), ':', 3))/1440 , 'mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 07:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171243#M891797</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-11T07:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171244#M891798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,but it does not solve the problem.&lt;/P&gt;&lt;P&gt;When i am replacing date field with the hard-coded value in your expression,it gives me null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Data:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="120" style="width: 92px; height: 118px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="117"&gt;TOTAL_TIME&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1/1/4000 6:32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1/1/4000 0:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1/1/4000 12:12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1/1/4000 7:35&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171244#M891798</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2016-08-11T09:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171245#M891799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your sample data is completely different from the format&amp;nbsp; 000 8:22:13 that you posted. Please give the correct definition of the format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171245#M891799</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-11T09:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171246#M891800</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;The below clarification was been provided to me on asking the date format.&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;Explanation of date field format :- 1/1/4000 = 0 days&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(1st octet is month, 2nd Octet is days and 3rd Octet is hours).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For eg: 000 8:22:13 (7 months, 21 days, 13 hrs)&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;Not Sure what is the difference here.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Even to me data looks very different with no value matching the example.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I will provide the required details after confirming with data provider&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171246#M891800</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2016-08-11T09:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171247#M891801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1/1/4000 is not the same format as 000. So what date and time is 1//1/4000 6:32? And what should the end result be for that value?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171247#M891801</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-11T09:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171248#M891802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;I got some clarity with the data.&lt;/P&gt;&lt;P&gt;From 1/1/4000 ,1 and 4000 has to be directly removed leaving middle section which gives days left ,which is&lt;STRONG&gt; 1 less&lt;/STRONG&gt; than mentioned days.&lt;/P&gt;&lt;P&gt;Example:1/n/4000,&lt;/P&gt;&lt;P&gt;Processed data=n&lt;/P&gt;&lt;P&gt;lets have 1/3/4000 3:45:12 AM&lt;/P&gt;&lt;P&gt;It means 2 days 3 hours 45 mins 12 sec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting this part ,i have used below expression:&lt;/P&gt;&lt;P&gt;=Timestamp#( IF(WildMatch(TOTAL_TIME,'*1/1/4000*'),date(TOTAL_TIME,'hh:mm:ss'),DATE(date(TOTAL_TIME,'d hh:mm:ss')-1,'d hh:mm:ss')) ) ,which is getting me correct data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Now i want to add this field value to another field value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ex: a field named start_time has to be added with TOTAL_TIME FIELD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let's say start_time for a ticket is '7/13/2016 3:45:12 TT' and Total_Time field for the same is :&lt;SPAN style="font-size: 13.3333px;"&gt;2 days 3 hours 45 mins 12 sec.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;So how can we add these 2 fields. (i.e. 7/13/2016 3:45:12 PM + 2 3:45:12) wherein 2 days 3 hours 45 min and 12 sec has been added to open_time field.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;How to&amp;nbsp; achieve this addition ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 18:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171248#M891802</guid>
      <dc:creator>Pulkit_Thukral</dc:creator>
      <dc:date>2016-08-11T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171249#M891803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add them: field1 + field2. Just make sure that one of the fields is a date or timestamp and the other is an interval of days+time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 05:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Conversion/m-p/1171249#M891803</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T05:41:58Z</dc:date>
    </item>
  </channel>
</rss>

