<?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 Dates in Text Objects in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278988#M1202705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make a list of SDay, what values do you get?&lt;/P&gt;&lt;P&gt;Also, are the values aligned to the left or the right? If they are aligned left they are text and if they are aligned right they are numbers. You need them to be numbers.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Sep 2010 16:38:47 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-09-24T16:38:47Z</dc:date>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278985#M1202702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've been reading around and haven't been able to find any information on this, so i'll give this a shot.&lt;/P&gt;&lt;P&gt;I would like to create a label via the Text object that displays something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Information from (start date) to (end date) for so and so'&lt;/P&gt;&lt;P&gt;I've put this:&lt;/P&gt;&lt;P&gt;date#(@10,'MM/DD/YYYY') as [Date of Service], Month(@10) as Month, Year(@10) as Year,&lt;BR /&gt; date(DayStart(@10), 'MM/DD/YYYY') as SDay,&lt;BR /&gt; date(DayEnd(@10), 'MM/DD/YYYY') as EDay,&lt;/P&gt;&lt;P&gt;in my script, but when I enter this&lt;/P&gt;&lt;P&gt;='Data dates from ' &amp;amp; [SDay] &amp;amp; 'to ' [EDay]&lt;/P&gt;&lt;P&gt;into the expression box, I get a null value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea where I'm going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278985#M1202702</guid>
      <dc:creator />
      <dc:date>2010-09-24T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278986#M1202703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're missing a &amp;amp; between to and EDay.&lt;/P&gt;&lt;P&gt;='Data dates from ' &amp;amp; [SDay] &amp;amp; 'to ' &amp;amp; [EDay]&lt;/P&gt;&lt;P&gt;You might also need to put min(SDay) and max(EDay).&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:32:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278986#M1202703</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T16:32:05Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278987#M1202704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;='Data dates from ' &amp;amp; min( [SDay]) &amp;amp; 'to ' &amp;amp;max( [EDay])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yields&lt;/P&gt;&lt;P&gt;"Data dates from to "&lt;/P&gt;&lt;P&gt;It doesn't bother displaying the dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278987#M1202704</guid>
      <dc:creator />
      <dc:date>2010-09-24T16:34:30Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278988#M1202705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you make a list of SDay, what values do you get?&lt;/P&gt;&lt;P&gt;Also, are the values aligned to the left or the right? If they are aligned left they are text and if they are aligned right they are numbers. You need them to be numbers.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:38:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278988#M1202705</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T16:38:47Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278989#M1202706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well it appears that there are no values in the text box either. Date of Service is importing in as text, but it is showing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there's a conversion method to switch it from text to numeric then convert it back into a date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:40:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278989#M1202706</guid>
      <dc:creator />
      <dc:date>2010-09-24T16:40:46Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278990#M1202707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In you script, try the following:&lt;/P&gt;&lt;P&gt;date(date#(@10,'MM/DD/YYYY')) as [Date of Service],&lt;BR /&gt;Month(date(date#(@10,'MM/DD/YYYY'))) as Month,&lt;BR /&gt;Year(date(date#(@10,'MM/DD/YYYY'))) as Year,&lt;BR /&gt; DayStart(date(date#(@10,'MM/DD/YYYY'))) as SDay,&lt;BR /&gt; DayEnd(date(date#(@10,'MM/DD/YYYY'))) as EDay,&lt;/P&gt;&lt;P&gt;A load of a load might be even better so that you don't have to repeat date(date#(@10,'MM/DD/YYYY')) so many times.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:46:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278990#M1202707</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T16:46:38Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278991#M1202708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still nothing. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; The list box doesn't show anything for SDay.&lt;/P&gt;&lt;P&gt;I'm wondering at this point if it's the format the dates are in when imported. They come in as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05-OCT-09&lt;/P&gt;&lt;P&gt;DD-MM-YY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:57:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278991#M1202708</guid>
      <dc:creator />
      <dc:date>2010-09-24T16:57:51Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278992#M1202709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this then&lt;/P&gt;&lt;P&gt;date(date#(@10,'DD-MMM-YY')) as [Date of Service],&lt;BR /&gt;Month(date(date#(@10,'DD-MMM-YY'))) as Month,&lt;BR /&gt;Year(date(date#(@10,'DD-MMM-YY'))) as Year,&lt;BR /&gt; DayStart(date(date#(@10,'DD-MMM-YY'))) as SDay,&lt;BR /&gt; DayEnd(date(date#(@10,'DD-MMM-YY'))) as EDay,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278992#M1202709</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T17:04:41Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278993#M1202710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah progress.&lt;/P&gt;&lt;P&gt;That shows the date, but it's got an ugly time stamp next to it now.&lt;/P&gt;&lt;P&gt;"Data dates from 12/7/2009 12:00:00 AM to 2/10/2010 11:59:59 PM"&lt;/P&gt;&lt;P&gt;So I changed my expression to:&lt;/P&gt;&lt;P&gt;='Data dates from ' &amp;amp; date(min( [SDay]), 'MM/DD/YYYY') &amp;amp; 'to ' &amp;amp; date(max( [EDay]), 'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;and I have&lt;/P&gt;&lt;P&gt;"Data dates from 12/07/2009 to 02/10/2010"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to verify, in the script it's specifying the format it's in and not as I'd like it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:11:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278993#M1202710</guid>
      <dc:creator />
      <dc:date>2010-09-24T17:11:07Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278994#M1202711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the function date#() you specify the format it is in to convert the text to date and then in the function date() you you can specify the format to convert it to or if you don't specify a format it will convert to the format defined in the system variables.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278994#M1202711</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-09-24T17:17:38Z</dc:date>
    </item>
    <item>
      <title>Dates in Text Objects</title>
      <link>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278995#M1202712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for clearing that up Karl!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 17:24:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dates-in-Text-Objects/m-p/278995#M1202712</guid>
      <dc:creator />
      <dc:date>2010-09-24T17:24:35Z</dc:date>
    </item>
  </channel>
</rss>

