<?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: Formatting dates in text boxes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484330#M483116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;='Date: ' &amp;amp; date(date#('&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;20130504','YYYYMMDD'),'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Replace this with your datefield&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jul 2013 09:10:22 GMT</pubDate>
    <dc:creator>er_mohit</dc:creator>
    <dc:date>2013-07-16T09:10:22Z</dc:date>
    <item>
      <title>Formatting dates in text boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484327#M483113</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 a text box which displays the date from a listbox called 'Reporting_Date_Comp' when a date value is selected. &lt;/P&gt;&lt;P&gt;However, the values are not formatted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, when I select '20130504' from the listbox, it will be displayed as 'Date: 20130504' in my text box.&lt;/P&gt;&lt;P&gt;Is there a way for me to format it such that it will be displayed as 'Date: 04/05/2013' instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my working code in the text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Date: ' &amp;amp; Reporting_Date_Comp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 08:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484327#M483113</guid>
      <dc:creator />
      <dc:date>2013-07-16T08:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting dates in text boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484328#M483114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;='Date: ' &amp;amp; date(Reporting_Date_Comp,'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible that Reporting_Date_Comp is not yet a date, just a number. In that case you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Date: ' &amp;amp; date(date#(Reporting_Date_Comp,'YYYYMMDD'),'DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually it would be better to do this conversion in the script.&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 09:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484328#M483114</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-16T09:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting dates in text boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484329#M483115</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;&lt;/P&gt;&lt;P&gt;I did the same formatting before, but it gave me this instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date: 22/06/57015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because of its numerical representation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 09:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484329#M483115</guid>
      <dc:creator />
      <dc:date>2013-07-16T09:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting dates in text boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484330#M483116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;='Date: ' &amp;amp; date(date#('&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;20130504','YYYYMMDD'),'DD/MM/YYYY')&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;Replace this with your datefield&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 09:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484330#M483116</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-07-16T09:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting dates in text boxes</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484331#M483117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I rewrote the script and it works! Thank you &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, 16 Jul 2013 09:23:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-dates-in-text-boxes/m-p/484331#M483117</guid>
      <dc:creator />
      <dc:date>2013-07-16T09:23:53Z</dc:date>
    </item>
  </channel>
</rss>

