<?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 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033259#M931014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure why '08/08/2015' worked for some dates and not for other dates, but the reason I find MakeDate to be more reliable then date within single quote is because of the following 2 reasons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) QlikView won't interpret it as date for any number of reasons. One could be the date format supplied doesn't match your SET DateFormat at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) 08/08/2015 is easy to interpret as 8th August, but 08/07 can be Aug 7th or July 8th. Making the distinction can be difficult if you just have date. With MakeDate() function you are sure what is what. MakeDate take the following arguments -&amp;gt; MakeDate(Year, Month, Date). So you are 100% sure of your inputs.&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>Tue, 08 Mar 2016 23:05:23 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-08T23:05:23Z</dc:date>
    <item>
      <title>String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033249#M931004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have date in 'MMM DD YYYY' format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get the data after 8/8/2015. So I am trying to convert the string into Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;Date#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[As of Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'MMM DD YYYY'),'MM/DD/YYYY')&amp;gt;='08/08/2015', 'Yes', 'No') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is working only if, Month is greater than 'August'. If I select Jan 10 2016, it is dispalying the output as 'No'. I want to display it as 'Yes', as it is greater than 8/8/2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Varun Reddy&lt;/SPAN&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/String-to-Date/m-p/1033249#M931004</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033250#M931005</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;Can you try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;=If(Num(Date#([As of Date]&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;, 'MMM DD YYYY')) &amp;gt;= Num(MakeDate(2015, 8, 8)), 'Yes', 'No')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: Tried a sample and it seems to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; If(Num(Date#([As of Date], 'MMM DD YYYY')) &amp;gt;= Num(MakeDate(2015, 8, 8)), 'Yes', 'No') as Flag;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;As of Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Jan 10 2016&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117408_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033250#M931005</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-08T21:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033251#M931006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are we using Num?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:50:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033251#M931006</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2016-03-08T21:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033252#M931007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(Date#(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;[As of Date]&lt;/SPAN&gt;, 'MMM DD YYYY')&amp;gt;=MakeDate(2015,8,8), 'Yes', 'No')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033252#M931007</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-03-08T21:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033253#M931008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxgro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain we using Makedate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033253#M931008</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2016-03-08T21:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033254#M931009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to use it, but I like to do a date comparison in terms of numbers rather than in terms of date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033254#M931009</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-08T21:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033255#M931010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some information on MakeDate() -&amp;gt; &lt;A href="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/makedate.htm?q=MakeDate" title="http://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/makedate.htm?q=MakeDate"&gt;makedate ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Generally, it is used to create a date &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033255#M931010</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-08T21:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033256#M931011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the Quick response. Could you please explain the reason why are we using make date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Varun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033256#M931011</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2016-03-08T21:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033257#M931012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 21:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033257#M931012</guid>
      <dc:creator>varunreddy</dc:creator>
      <dc:date>2016-03-08T21:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033258#M931013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems it's working for me just like you said, maybe is something different? or I didn't get where was the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:lot of conversation while I was testing, I should remember to refresh the page &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 22:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033258#M931013</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-03-08T22:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033259#M931014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure why '08/08/2015' worked for some dates and not for other dates, but the reason I find MakeDate to be more reliable then date within single quote is because of the following 2 reasons&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) QlikView won't interpret it as date for any number of reasons. One could be the date format supplied doesn't match your SET DateFormat at the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) 08/08/2015 is easy to interpret as 8th August, but 08/07 can be Aug 7th or July 8th. Making the distinction can be difficult if you just have date. With MakeDate() function you are sure what is what. MakeDate take the following arguments -&amp;gt; MakeDate(Year, Month, Date). So you are 100% sure of your inputs.&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>Tue, 08 Mar 2016 23:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033259#M931014</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-08T23:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: String to Date</title>
      <link>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033260#M931015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Varun Reddy,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;it's indeed kind of strange what you observed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #575757;"&gt;Are you sure you made selections in [&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #575757;"&gt;As of Date] and not in another calendar field, so that [&lt;/SPAN&gt;&lt;SPAN style="color: #575757; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;As of Date] might show multiple possible values for your specific selection (just asking because an as-of-table will usually have two fields with similar values)? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In this case,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Date#&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[As of Date]&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,'MMM DD YYYY'),'MM/DD/YYYY')&amp;gt;='08/08/2015', 'Yes', 'No')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;will return 'No', because the implicite Only( &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;[As of Date] ) will return NULL, hence the comparison fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 23:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/String-to-Date/m-p/1033260#M931015</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-08T23:25:45Z</dc:date>
    </item>
  </channel>
</rss>

