<?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: DST start and end dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DST-start-and-end-dates/m-p/55606#M9242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test results&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200055_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 14:50:12 GMT</pubDate>
    <dc:creator>markp201</dc:creator>
    <dc:date>2018-04-18T14:50:12Z</dc:date>
    <item>
      <title>DST start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/DST-start-and-end-dates/m-p/55605#M9241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're having to adjust UTC to local time for historical data so I needed a way to determine if the date is DST or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DST starts on the 2nd Sunday in March and ends on the first Sunday in November.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this out with 2016, 2017 and 2018.&amp;nbsp; Seems to hold but will likely create a load script to verify.&lt;/P&gt;&lt;P&gt;Also, DST changed back in 2007 so this only holds 2007 going forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start of DST for current year&lt;/P&gt;&lt;P&gt;DATE(MakeDate(YEAR(NOW()),3,1)+(6-WEEKDAY(MakeDate(YEAR(NOW()),3,1)))+7) &amp;amp; chr(13) &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//End of DST for current year&lt;/P&gt;&lt;P&gt;DATE(MakeDate(YEAR(NOW()),11,1)+(6-WEEKDAY(MakeDate(YEAR(NOW()),11,1))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start of DST for historical date&lt;/P&gt;&lt;P&gt;DATE(MakeDate(YEAR([Field]),3,1)+(6-WEEKDAY(MakeDate(YEAR([Field]),3,1)))+7) &amp;amp; chr(13) &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//End of DST for current year&lt;/P&gt;&lt;P&gt;DATE(MakeDate(YEAR([Field]),11,1)+(6-WEEKDAY(MakeDate(YEAR([Field]),11,1))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not perfect since some states do not observe dst so feel free to post modifications or maybe there is a simpler method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DST-start-and-end-dates/m-p/55605#M9241</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2018-04-18T14:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: DST start and end dates</title>
      <link>https://community.qlik.com/t5/QlikView/DST-start-and-end-dates/m-p/55606#M9242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Test results&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/200055_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:50:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DST-start-and-end-dates/m-p/55606#M9242</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2018-04-18T14:50:12Z</dc:date>
    </item>
  </channel>
</rss>

