<?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 get this date stored as text as a regular date field in QlikView? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554806#M1334910</link>
    <description>&lt;P&gt;But this formula does work well for both dates, with one digit day and two digits day:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(len(rtrim(DateDMMYYYY)) = 7, date(Alt(date#(DateDMMYYYY, 'DMMYYYY'), date#(DateDMMYYYY, 'DMMYYYY'))), date(Alt(date#(DateDMMYYYY, 'DDMMYYYY'), date#(DateDMMYYYY, 'DDMMYYYY')))) as DateProduced,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, without your valuable input I wouldn't have solved it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you, sir&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Aug 2026 12:22:42 GMT</pubDate>
    <dc:creator>NenadV</dc:creator>
    <dc:date>2026-08-14T12:22:42Z</dc:date>
    <item>
      <title>How to get this date stored as text as a regular date field in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554800#M1334907</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;attached is the data source file from which I can't get a regular date field from the DateDMMMYYYY column in QlikView using this standard function or even&amp;nbsp; date#():&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date(DateDMMYYYY,'d.MM.YYYY') as DateProduced;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any help is very welcome.&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2026 10:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554800#M1334907</guid>
      <dc:creator>NenadV</dc:creator>
      <dc:date>2026-08-14T10:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get this date stored as text as a regular date field in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554804#M1334908</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/147573"&gt;@NenadV&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Going off your sample data I would suggest the following formula:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;date(Alt(date#(DateDMMYYYY, 'DDMMYYYY'), date#(DateDMMYYYY, 'DMMYYYY'))) as DateProduced&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The date#() function needs the format used in your dataset, the date() function converts that to an actual date, corresponding to the format you set locally. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used the Alt() as QlikSense seemed to have a problem with the switch between one and two days in the string, I assume so does QlikView. So if there's a non-numeric value returned from an 8 digit date, Qlik automatically resorts to the next format resolving a 7 digit date. You could also solve this by checking the length of the string.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Lennart&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2026 11:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554804#M1334908</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2026-08-14T11:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get this date stored as text as a regular date field in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554805#M1334909</link>
      <description>&lt;P&gt;Thanks Lennart,&lt;/P&gt;&lt;P&gt;I didn't know about the Alt() function.&lt;/P&gt;&lt;P&gt;Your Formula doesn't work because it ends with this date 30.12.1899 for all values&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2026 12:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554805#M1334909</guid>
      <dc:creator>NenadV</dc:creator>
      <dc:date>2026-08-14T12:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get this date stored as text as a regular date field in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554806#M1334910</link>
      <description>&lt;P&gt;But this formula does work well for both dates, with one digit day and two digits day:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(len(rtrim(DateDMMYYYY)) = 7, date(Alt(date#(DateDMMYYYY, 'DMMYYYY'), date#(DateDMMYYYY, 'DMMYYYY'))), date(Alt(date#(DateDMMYYYY, 'DDMMYYYY'), date#(DateDMMYYYY, 'DDMMYYYY')))) as DateProduced,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, without your valuable input I wouldn't have solved it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you, sir&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2026 12:22:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554806#M1334910</guid>
      <dc:creator>NenadV</dc:creator>
      <dc:date>2026-08-14T12:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get this date stored as text as a regular date field in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554807#M1334911</link>
      <description>&lt;P&gt;Okay, glad you got it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't know why my formula seemed to return all zeros (the numeric value of&amp;nbsp;&lt;SPAN&gt;30.12.1899) for you, but maybe that's just a difference between Sense and View. Do you use NullAsValue by any chance?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;With your new formula you should be able to drop the Alt() though, reducing the total length by quite a bit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(len(rtrim(DateDMMYYYY)) = 7, date(date#(DateDMMYYYY, 'DMMYYYY')), date(date#(DateDMMYYYY, 'DDMMYYYY'))) as DateProduced&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2026 13:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-this-date-stored-as-text-as-a-regular-date-field-in/m-p/2554807#M1334911</guid>
      <dc:creator>lennart_mo</dc:creator>
      <dc:date>2026-08-14T13:00:47Z</dc:date>
    </item>
  </channel>
</rss>

