<?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: Strange problem with date converting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863331#M302208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to convert to num then to date. &lt;/P&gt;&lt;P&gt;Or only keep the num() and convert to date at the end.&lt;/P&gt;&lt;P&gt;Something like &lt;/P&gt;&lt;P&gt;= date(num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;arrival&lt;/SPAN&gt;),'DD.MM.YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jun 2015 10:26:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-10T10:26:06Z</dc:date>
    <item>
      <title>Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863329#M302206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hello, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Could someone help me to fix the bug in date converting, please?&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;I've got a set of departure and arrival dates and the delivery-time. The problem is that some dates are in format DD.MM.YYY and some in MM.DD.YYYY.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;To make it work correctly i wrote a script like:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Delivery:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;date(departure) as departure, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;date(arrival) as arrival , &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delivery_time, &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(arrival-departure=delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(arrival),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; if(Date(Date#(arrival, 'MM.DD.YYYY'), 'DD.MM.YYYY') -Date(departure)=delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(Date#(arrival, 'MM.DD.YYYY'), 'DD.MM.YYYY'),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; IF(Date(arrival)-Date(Date#(departure, 'MM.DD.YYYY'), 'DD.MM.YYYY') =delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(arrival),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; IF(Date(Date#(arrival, 'MM.DD.YYYY'), 'DD.MM.YYYY') -Date(Date#(departure, 'MM.DD.YYYY'), 'DD.MM.YYYY') =delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(Date#(arrival, 'MM.DD.YYYY'), 'DD.MM.YYYY'),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; 111&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; )as arrival1,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;if(arrival-departure=delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(departure),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; if(Date(Date#(arrival, 'MM.DD.YYYY'), 'DD.MM.YYYY')-Date(departure)=delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(departure),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; IF(Date(arrival)-Date(Date#(departure, 'MM.DD.YYYY'), 'DD.MM.YYYY')=delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(Date#(departure, 'MM.DD.YYYY'), 'DD.MM.YYYY'),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; IF(Date(Date#(arrival, 'MM.DD.YYYY'), 'DD.MM.YYYY')-Date(Date#(departure, 'MM.DD.YYYY'), 'DD.MM.YYYY')=delivery_time,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; Date(Date#(departure, 'MM.DD.YYYY'), 'DD.MM.YYYY'),&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; 111&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; )&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&amp;nbsp; )as departure1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;(qvd);&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;but somehow it works on one data-set and doesnt work on another &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;When I put a text object on the sheet, I see a correct work of conversion, but in the tablebox there is a wrong data=(&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Help me please to solve the problem and understand the logic of Qlik=)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Alexa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 10:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863329#M302206</guid>
      <dc:creator />
      <dc:date>2015-06-10T10:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863330#M302207</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;take a look at alt() in help menu it will helpful to acheive what you required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 10:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863330#M302207</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-10T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863331#M302208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to convert to num then to date. &lt;/P&gt;&lt;P&gt;Or only keep the num() and convert to date at the end.&lt;/P&gt;&lt;P&gt;Something like &lt;/P&gt;&lt;P&gt;= date(num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;arrival&lt;/SPAN&gt;),'DD.MM.YYYY')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 10:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863331#M302208</guid>
      <dc:creator />
      <dc:date>2015-06-10T10:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863332#M302209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Max!&lt;/P&gt;&lt;P&gt;Thanks for a quick answer! I've never tried that function yet, thanks for your advice very much!&lt;/P&gt;&lt;P&gt;But I'm afraid it's not what I need, because there is only logical way to know the right date format:&lt;/P&gt;&lt;P&gt;departure&amp;nbsp;&amp;nbsp; arrival&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; delivery_time&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;12.03.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;13.01.2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;41&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;in such case 12.03.2014 is both correct in format DD.MM.YYYY and MM.DD.YYYY, as to "programm view", and logic says that departure should be 03.12.2014 to get the correct delivery time...&lt;/P&gt;&lt;P&gt;Correct me, if i'm not right, please&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alexa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPD:&lt;/P&gt;&lt;P&gt;as i found here &lt;A href="https://community.qlik.com/message/650472"&gt;Alt function question&lt;/A&gt;&lt;/P&gt;&lt;P&gt;my logic of alt is right .... so looking for an answer again...&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P class="j-post-avatar" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" class="j-avatar jiveTT-hover-user" data-avatarid="10313" data-externalid="" data-presence="null" data-userid="120618" data-username="MRKachhiaIMP" href="https://community.qlik.com/people/MRKachhiaIMP" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;&lt;IMG alt="Manish Kachhia" border="0" class="jive-avatar jive-image" data-avatarid="10313" data-height="46" data-username="MRKachhiaIMP" height="46" src="https://community.qlik.com/people/MRKachhiaIMP/avatar/46.png?a=10313" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" width="46" /&gt;&lt;SPAN class="j-status-levels j-gamification-status-level" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;IMG alt="Legend" class="jive-image" src="https://qvfiles.s3.amazonaws.com/community/L11.png" style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;" title="Legend" /&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author" style="font-weight: inherit; font-style: inherit; font-size: 0.9em; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11.6999998092651px; font-family: inherit;"&gt;&lt;A href="https://community.qlik.com/people/MRKachhiaIMP"&gt;MRKachhiaIMP&lt;/A&gt; &lt;SPAN class="icon-status-icon icon-mvp" style="margin: 0 0 0 4px; font-weight: inherit; font-style: inherit; font-size: 11.6999998092651px; font-family: inherit;" title="Mvp"&gt;&lt;/SPAN&gt; &lt;/STRONG&gt;06.11.2014 5:46 &lt;SPAN class="font-color-meta-light j-thread-replyto" style="padding: 0 0 0 3px; font-weight: inherit; font-style: inherit; font-size: 11.6999998092651px; font-family: inherit; color: #a9a9a9;"&gt;(&lt;A _jive_internal="true" class="font-color-meta-light localScroll" href="https://community.qlik.com/message/650472#650472" style="font-weight: inherit; font-style: inherit; font-size: 11.6999998092651px; font-family: inherit; color: #a9a9a9;" title="Перейти к сообщению"&gt;в ответ на Adam Pasierbek&lt;/A&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If you have two different formats like&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;DD/MM/YYYY and MM/DD/YYYY&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;There is no possibility to recognize them..&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;12/03/2014 and 12/03/2014.... Both could be either 3rd December or 12th March&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;ALT function can be used for more than one date formats something like&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;DD/MM/YYYY and DD.MM.YYYY and DD-MM-YYYY&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;or&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;DD/MM/YYYY and MM.DD.YYYY and YYY-MM-DD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hope this will make clear...&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 10:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863332#M302209</guid>
      <dc:creator />
      <dc:date>2015-06-10T10:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863333#M302210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,Sami! Thanks for your answer!&lt;/P&gt;&lt;P&gt;Num doesnt help =(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 10:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863333#M302210</guid>
      <dc:creator />
      <dc:date>2015-06-10T10:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863334#M302211</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;As per my understanding alt() works like if()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose 1st condition is true then it will assign first format, if not then go for second format&lt;/P&gt;&lt;P&gt;In your case suppose if you write&lt;/P&gt;&lt;P&gt;alt(date#(datefield,'DD.MM.YYYY'),date#(datefield,'MM.DD.YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your date is &lt;SPAN style="color: #363636;"&gt;12.03.2014 then you will get output as 12 as Day ,03 as Month and 2014 as Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #363636;"&gt;but if you write your expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;alt(date#(datefield,'MM.DD.YYYY'),date#(datefield,'DD.MM.YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you will get 12 as Month ,03 as Day and 2014 as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 11:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863334#M302211</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-06-10T11:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863335#M302212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this it works 100%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&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;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;departure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'DD.MM.YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;departure&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;arrival&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),'DD.MM.YYYY') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;arrival&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ,&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 11:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863335#M302212</guid>
      <dc:creator>burli1895</dc:creator>
      <dc:date>2015-06-10T11:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863336#M302213</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;See this&lt;A href="http://qlikshare.com/using-alt-function-qlikview/"&gt; blog post&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 12:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863336#M302213</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-06-10T12:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863337#M302214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, Denis!&lt;/P&gt;&lt;P&gt;It works, but the result is same date format, as it was, as expected:&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;departure&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;arrival&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;delivery_time&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;departure1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;arrival1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;12.03.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;13.01.2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;41&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;12.03.2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;111&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 12:57:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863337#M302214</guid>
      <dc:creator />
      <dc:date>2015-06-10T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863338#M302215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try with a chart, see attachment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First red rectangle, calc of the 4 difference&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ok-ok&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrival - departure&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;rev-ok&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;arrival with month and day reversed - departure&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ok-rev&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arrival - departure with month and day reversed&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;EM&gt;rev-rev&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...............&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second red rectangle: compare the 4 difference with delivery time&lt;/P&gt;&lt;P&gt;Then, using that result, calc the NewArrival and NewDeparture&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last, calc NewArrival - NewDeparture (yellow), it should be as delivery_time (yellow)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand, you can use the same logic at the script side&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="234" src="https://community.qlik.com/legacyfs/online/88994_1.png" style="height: 234.167741935484px; width: 698px;" width="698" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 18:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863338#M302215</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-10T18:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Strange problem with date converting</title>
      <link>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863339#M302216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Massimo, thank you very much!!! Your idea works great!!!! "You saved our lifes, we are totally gratefull"&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;P&gt;Could you be so kind to tell me (any suggestion about qliks logic in this case),&amp;nbsp; why my script didnt work, althoug the same code in the text object works good?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Alexa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Strange-problem-with-date-converting/m-p/863339#M302216</guid>
      <dc:creator />
      <dc:date>2015-06-18T09:50:21Z</dc:date>
    </item>
  </channel>
</rss>

