<?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: Text to Date Format NULL when converting in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901118#M74352</link>
    <description>&lt;P&gt;Thanks Henric, The first solution worked.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikBeginner1_0-1646393001599.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73606iB24CBAEF9A89EA7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikBeginner1_0-1646393001599.png" alt="QlikBeginner1_0-1646393001599.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Date(Floor(Date#(DateTermsIssued, 'MMM DD YYYY hh:mmTT')),'DD/MM/YYY') as DateTermIssued1,&lt;BR /&gt;Date(Floor(Date#(DateTermsIssued, 'MMM&amp;nbsp; D YYYY hh:mmTT')),'DD/MM/YYY') as DateTermIssued2,&lt;/P&gt;
&lt;P&gt;Because some of the day values have one and two numbers, ive had to use this IF to bring through the above dates&lt;/P&gt;
&lt;P&gt;=IF(ISNULL(DateTermIssued1),DateTermIssued1,DateTermIssued1)&lt;/P&gt;
&lt;P&gt;Thanks Again!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 11:25:32 GMT</pubDate>
    <dc:creator>QlikBeginner1</dc:creator>
    <dc:date>2022-03-04T11:25:32Z</dc:date>
    <item>
      <title>Text to Date Format NULL when converting</title>
      <link>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901081#M74346</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;this may be simple,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikBeginner1_0-1646389354038.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73598i61633FC62A3E9451/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikBeginner1_0-1646389354038.png" alt="QlikBeginner1_0-1646389354038.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have two date fields, one which is text (DateTermIssued) and one which is the renewal date.&lt;/P&gt;
&lt;P&gt;I am trying to get a duration of the two dates, but I am unable to format the DateTermIssued field to be a date field?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikBeginner1_1-1646389413806.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73599iC5D480E3057726FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikBeginner1_1-1646389413806.png" alt="QlikBeginner1_1-1646389413806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have tried many different date functions to try and convert it, but unable to do so?&lt;/P&gt;
&lt;P&gt;Date(Floor(Date#( DateTermIssued1,&amp;nbsp;'MMM DD YYYY HH:MM:tt'),'DD/MM/YY')) as an example, just gives a null, can you see what I am doing wrong,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jun 1 2021 12:00AM&lt;/P&gt;
&lt;P&gt;This is how the date term issued field is showing the data in excel. MMM DD YYY HH:MM:tt&lt;/P&gt;
&lt;P&gt;any help would be greatly appreciated,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 10:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901081#M74346</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2022-03-04T10:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Date Format NULL when converting</title>
      <link>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901084#M74347</link>
      <description>&lt;P&gt;Try this in the script:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date(Floor(Date#( DateTermIssued1,&amp;nbsp;'MMM DD YYYY hh:mmTT'),'DD/MM/YY'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that hours and minutes must be in lower case, and TT must be in upper case.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 10:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901084#M74347</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-03-04T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Date Format NULL when converting</title>
      <link>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901089#M74348</link>
      <description>&lt;P&gt;A second alternative is&lt;BR /&gt;Date#(Left(DateTermIssued1,Index(DateTermIssued1,' ',3)-1), 'MMM DD YYYY')&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 10:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901089#M74348</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-03-04T10:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Date Format NULL when converting</title>
      <link>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901105#M74349</link>
      <description>&lt;P&gt;Thanks Henric,&lt;/P&gt;
&lt;P&gt;Not working correctly, first formula NULL and the second formula gives me a result, but when i try to Format this into a date it nulls too,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikBeginner1_0-1646391243861.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73604i0BFC063A5B5924E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikBeginner1_0-1646391243861.png" alt="QlikBeginner1_0-1646391243861.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikBeginner1_1-1646391273261.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73605i03CC665B016BC8D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikBeginner1_1-1646391273261.png" alt="QlikBeginner1_1-1646391273261.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 10:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901105#M74349</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2022-03-04T10:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Date Format NULL when converting</title>
      <link>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901111#M74350</link>
      <description>&lt;P&gt;A bracket was misplaced, and it needs to be D and not DD.&lt;/P&gt;&lt;P&gt;Try&lt;BR /&gt;Date(Floor(Date#(DateTermIssued1, 'MMM D YYYY hh:mmTT')),'DD/MM/YY')&lt;BR /&gt;Date#(Trim(Left(DateTermIssued1,Index(DateTermIssued1,' ',3)-1)), 'MMM D YYYY')&lt;BR /&gt;Date#(Trim(Subfield(DateTermIssued1,':',1)), 'MMM D YYYY hh')&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 11:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901111#M74350</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2022-03-04T11:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Text to Date Format NULL when converting</title>
      <link>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901118#M74352</link>
      <description>&lt;P&gt;Thanks Henric, The first solution worked.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikBeginner1_0-1646393001599.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/73606iB24CBAEF9A89EA7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QlikBeginner1_0-1646393001599.png" alt="QlikBeginner1_0-1646393001599.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Date(Floor(Date#(DateTermsIssued, 'MMM DD YYYY hh:mmTT')),'DD/MM/YYY') as DateTermIssued1,&lt;BR /&gt;Date(Floor(Date#(DateTermsIssued, 'MMM&amp;nbsp; D YYYY hh:mmTT')),'DD/MM/YYY') as DateTermIssued2,&lt;/P&gt;
&lt;P&gt;Because some of the day values have one and two numbers, ive had to use this IF to bring through the above dates&lt;/P&gt;
&lt;P&gt;=IF(ISNULL(DateTermIssued1),DateTermIssued1,DateTermIssued1)&lt;/P&gt;
&lt;P&gt;Thanks Again!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 11:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Text-to-Date-Format-NULL-when-converting/m-p/1901118#M74352</guid>
      <dc:creator>QlikBeginner1</dc:creator>
      <dc:date>2022-03-04T11:25:32Z</dc:date>
    </item>
  </channel>
</rss>

