<?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 Date conversion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-conversion/m-p/297740#M1192982</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 Date Column and i want to convert in weekstart format like 'DD-MMM'&amp;nbsp; but it start from every sunday week.&lt;/P&gt;&lt;P&gt;Please provide help for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jun 2011 08:51:14 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2011-06-17T08:51:14Z</dc:date>
    <item>
      <title>Date conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion/m-p/297740#M1192982</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 Date Column and i want to convert in weekstart format like 'DD-MMM'&amp;nbsp; but it start from every sunday week.&lt;/P&gt;&lt;P&gt;Please provide help for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 08:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion/m-p/297740#M1192982</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-06-17T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Date conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion/m-p/297741#M1192983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; At my place it starts with every Monday week, but anyways you can try this &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Weekstart(Date,0,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This will give you one day after the weekstart date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 09:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion/m-p/297741#M1192983</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-06-17T09:10:31Z</dc:date>
    </item>
    <item>
      <title>Date conversion</title>
      <link>https://community.qlik.com/t5/QlikView/Date-conversion/m-p/297742#M1192984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, &lt;/P&gt;&lt;P&gt;If your column is called ORIGINAL_DATE, the syntax will be &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;date (&amp;nbsp;&amp;nbsp; weekstart( ORIGINAL_DATE, 0, -1 ), 'DD-MMM') AS WeekStart&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The date function will format it as DD-MMM. The weekstart function will get the start of the week, but the standard is monday. The third parameter of that functions will offset the date by -1 to send it to sunday.&lt;/P&gt;&lt;P&gt;You can get the full explanation on the function with the definition on the help file (copy below)&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4 style="background-color: #c0c0c0;"&gt;WeekStart&lt;SPAN style="font-style: italic;"&gt;&lt;A name="kanchor513"&gt;&lt;/A&gt;&lt;A name="WeekStart"&gt;&lt;/A&gt;( date [, shift = 0 [,weekoffset = 0]] )&lt;/SPAN&gt;&lt;/H4&gt;&lt;P&gt;Returns a value corresponding to a timestamp with the first millisecond of the first date ( Monday ) of the calendar week containing &lt;SPAN style="font-style: italic;"&gt;date&lt;/SPAN&gt;. The default output format will be the DateFormat set in the script. &lt;SPAN style="font-style: italic;"&gt;Shift&lt;/SPAN&gt; is an integer, where the value 0 indicates the week which contains &lt;SPAN style="font-style: italic;"&gt;date&lt;/SPAN&gt;. Negative values in shift indicate preceding weeks and positive values indicate succeeding weeks. If you want to work with weeks not starting midnight between Sunday and Monday, you may indicate an offset in days in &lt;SPAN style="font-style: italic;"&gt;weekoffset&lt;/SPAN&gt;. This may be given as a real number indicating days and/or fractions of a day.&lt;/P&gt;&lt;H2&gt;Example:&lt;/H2&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;weekstart&lt;/SPAN&gt; ( '2006-01-12' ) returns '2006-01-09' with an underlying numeric value corresponding to '2006-01-09 00:00:00.000'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;weekstart&lt;/SPAN&gt; ( '2006-01-12', -1 ) returns '2006-01-02' with an underlying numeric value corresponding to '2006-01-02 00:00:00.000'&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;weekstart&lt;/SPAN&gt; ( '2006-01-12', 0, 1 ) returns '2006-01-10' with an underlying numeric value corresponding to '2006-01-10 00:00:00.000'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 09:11:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-conversion/m-p/297742#M1192984</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-06-17T09:11:06Z</dc:date>
    </item>
  </channel>
</rss>

