<?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: Weekname returns week number in 2021 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781580#M60820</link>
    <description>&lt;P&gt;Thank you, I tried to run your code but the current week number is 7. As you can see:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dotnetfan_0-1612951169483.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48834i81CA36B6B62A27F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dotnetfan_0-1612951169483.png" alt="dotnetfan_0-1612951169483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 09:59:57 GMT</pubDate>
    <dc:creator>dotnetfan</dc:creator>
    <dc:date>2021-02-10T09:59:57Z</dc:date>
    <item>
      <title>Weekname returns week number in 2021</title>
      <link>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781139#M60786</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to get the week number based on the datetime, however, when I execute following script then I found the week number is not correct:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let vWeekNumber = WeekName('2021/1/1')&amp;nbsp; =&amp;gt; returns: 2021/01 (However based on the calendar in Outlook, 2021/1/1 should be considered as the week 53, 2020,)&lt;/P&gt;&lt;P&gt;Let vWeekNumber = WeekName(Today())&amp;nbsp; =&amp;gt; returns: 2021/07 (it should be week 6)&lt;/P&gt;&lt;P&gt;Does anyone can help me to solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dotnetfan&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 09:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781139#M60786</guid>
      <dc:creator>dotnetfan</dc:creator>
      <dc:date>2021-02-09T09:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Weekname returns week number in 2021</title>
      <link>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781211#M60790</link>
      <description>&lt;P&gt;Try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let vWeekNumber = Week(Today());&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 13:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781211#M60790</guid>
      <dc:creator>AdiPai</dc:creator>
      <dc:date>2021-02-09T13:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Weekname returns week number in 2021</title>
      <link>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781580#M60820</link>
      <description>&lt;P&gt;Thank you, I tried to run your code but the current week number is 7. As you can see:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dotnetfan_0-1612951169483.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/48834i81CA36B6B62A27F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dotnetfan_0-1612951169483.png" alt="dotnetfan_0-1612951169483.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 09:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781580#M60820</guid>
      <dc:creator>dotnetfan</dc:creator>
      <dc:date>2021-02-10T09:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Weekname returns week number in 2021</title>
      <link>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781601#M60821</link>
      <description>&lt;P&gt;Check if you have these variables set:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SET FirstWeekDay=0;
SET BrokenWeeks=0;
SET ReferenceDay=4;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 11:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781601#M60821</guid>
      <dc:creator>Almen</dc:creator>
      <dc:date>2021-02-10T11:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Weekname returns week number in 2021</title>
      <link>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781636#M60825</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Check how your Global variables are defined in the Main tab, like below;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;BR /&gt;SET DecimalSep='.';&lt;BR /&gt;SET MoneyThousandSep=',';&lt;BR /&gt;SET MoneyDecimalSep='.';&lt;BR /&gt;SET MoneyFormat='$#,##0.00;-$#,##0.00';&lt;BR /&gt;SET TimeFormat='h:mm:ss TT';&lt;BR /&gt;SET DateFormat='M/D/YYYY';&lt;BR /&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;BR /&gt;SET FirstWeekDay=6;&lt;BR /&gt;SET BrokenWeeks=1;&lt;BR /&gt;SET ReferenceDay=0;&lt;BR /&gt;SET FirstMonthOfYear=1;&lt;BR /&gt;SET CollationLocale='en-US';&lt;BR /&gt;SET CreateSearchIndexOnReload=1;&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;BR /&gt;SET NumericalAbbreviation='3:k;6:M;9:G;12:T;15:P;18:E;21:Z;24:Y;-3:m;-6:μ;-9:n;-12:p;-15:f;-18:a;-21:z;-24:y';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 13:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Weekname-returns-week-number-in-2021/m-p/1781636#M60825</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2021-02-10T13:03:07Z</dc:date>
    </item>
  </channel>
</rss>

