<?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: Create Variable with Date and Time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436753#M809597</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;='YYYYMMDD';&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;SET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;TimestampFormat&lt;/EM&gt;&lt;/STRONG&gt;='YYYYMMDD hh:mm:ss[.fff]';&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vSTART&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff;"&gt;TimeStamp&lt;/SPAN&gt;('20150701 06:00:00')&amp;amp;' hs';&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vEND&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff;"&gt;Timestamp&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;())&amp;amp;' '&amp;amp;'06:00:00')&amp;amp;' hs'; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 16:14:09 GMT</pubDate>
    <dc:creator>antoniotiman</dc:creator>
    <dc:date>2017-10-11T16:14:09Z</dc:date>
    <item>
      <title>Create Variable with Date and Time</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436750#M809594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vYEAR = YEAR(TODAY())-3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="font-size: 10pt; text-decoration: underline;"&gt;&lt;STRONG&gt;vYEAR = 2014&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to create 2 more variables with the following values:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vSTART = 20150701 06:00:00 hs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;1st day &lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;&lt;STRONG&gt;of july at 6 am from &lt;/STRONG&gt;&lt;/SPAN&gt;vYEAR+1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vEND = &lt;SPAN style="font-size: 13.3333px;"&gt;20171001 06:00:00 hs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;1st day of current month &lt;SPAN style="font-size: 13.3333px; text-decoration: underline;"&gt;&lt;STRONG&gt;at 6 am from &lt;/STRONG&gt;&lt;/SPAN&gt;current year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(*) Date&lt;/STRONG&gt;&lt;STRONG&gt; &lt;SPAN style="text-decoration: underline;"&gt;format&lt;/SPAN&gt;&lt;/STRONG&gt;: YYYYMMDD hh:mm:ss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how could I get those values to use them in variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436750#M809594</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create Variable with Date and Time</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436751#M809595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStart = Date( YearStart( MakeDate(2014) ) , 'YYYYMMDD')&amp;nbsp; &amp;amp; ' 06:00:00 hs'&lt;/P&gt;&lt;P&gt;LET vEnd = Date( MonthStart( today() ), 'YYYYMMDD' ) &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;amp; ' 06:00:00 hs'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Good luck&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Oscar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436751#M809595</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-10-11T16:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create Variable with Date and Time</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436752#M809596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vStart = Date( YearStart( MakeDate(2014) ) , 'YYYYMMDD')&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;amp; ' ' &amp;amp; MakeTime( 6,0,0 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vEnd = Date( MonthStart( today() ), 'YYYYMMDD' ) &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;amp; ' ' &amp;amp; MakeTime( 6,0,0 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Oscar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436752#M809596</guid>
      <dc:creator>oscar_ortiz</dc:creator>
      <dc:date>2017-10-11T16:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Variable with Date and Time</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436753#M809597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;DateFormat&lt;/EM&gt;&lt;/STRONG&gt;='YYYYMMDD';&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;SET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;TimestampFormat&lt;/EM&gt;&lt;/STRONG&gt;='YYYYMMDD hh:mm:ss[.fff]';&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vSTART&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff;"&gt;TimeStamp&lt;/SPAN&gt;('20150701 06:00:00')&amp;amp;' hs';&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;vEND&lt;/EM&gt;&lt;/STRONG&gt; = &lt;SPAN style="color: #0000ff;"&gt;Timestamp&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;MonthStart&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Today&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;())&amp;amp;' '&amp;amp;'06:00:00')&amp;amp;' hs'; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436753#M809597</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2017-10-11T16:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create Variable with Date and Time</title>
      <link>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436754#M809598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vYEAR = YEAR(TODAY())-3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // vYEAR = 2014&lt;/P&gt;&lt;P&gt;LET vSTART = Date(Makedate(vYEAR+1, 7) + 6/24, 'YYYYMMDD hh:mm:ss');&lt;/P&gt;&lt;P&gt;LET vEND = Date(MonthStart(Today()) + 6/24, 'YYYYMMDD hh:mm:ss');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" height="156" src="https://community.qlik.com/legacyfs/online/179294_1.png" style="height: 156px; width: 305.5px;" width="306" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 16:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-Variable-with-Date-and-Time/m-p/1436754#M809598</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-10-11T16:16:49Z</dc:date>
    </item>
  </channel>
</rss>

