<?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 two different SET DateFormat ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750891#M664362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use whatever you want for the variable name -- as long as it does not conflict with a special QV variable name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable "DateFormat" is a special QV name that defines the default format for dates. You can define additional variables like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vMyDateFormat = 'MMM-YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The vMyDateVariable will have no impact or meaning until it is used in an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(OrderMonth, '$(vMyDateFormat'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because variables cannot be used as format string in the chart Number format dialogs, it's not typical to set up exception date formats in variable strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 01:24:15 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-01-08T01:24:15Z</dc:date>
    <item>
      <title>create two different SET DateFormat ?</title>
      <link>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750890#M664361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I want to make a date format for MMM-YYYY (Jan-2015) for use in some listboxes and still keep the other M/D/YYYY date format for use in field values.&amp;nbsp; Can someone provide me the line to add below for MMM-YYYY date format that wouldn't replace or conflict with the default date format?&amp;nbsp; Previously, I'd been doing weird concatenate month() year() functions in script and would like to quit that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ThousandSep=',';&lt;/P&gt;&lt;P&gt;SET DecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyThousandSep=',';&lt;/P&gt;&lt;P&gt;SET MoneyDecimalSep='.';&lt;/P&gt;&lt;P&gt;SET MoneyFormat='$#,##0.00;($#,##0.00)';&lt;/P&gt;&lt;P&gt;SET TimeFormat='h:mm:ss TT';&lt;/P&gt;&lt;P&gt;SET DateFormat='M/D/YYYY';&lt;/P&gt;&lt;P&gt;SET ____________='MMM-YYYY', //what goes in this blank?&lt;/P&gt;&lt;P&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/P&gt;&lt;P&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;/P&gt;&lt;P&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 20:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750890#M664361</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2015-01-07T20:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: create two different SET DateFormat ?</title>
      <link>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750891#M664362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use whatever you want for the variable name -- as long as it does not conflict with a special QV variable name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable "DateFormat" is a special QV name that defines the default format for dates. You can define additional variables like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vMyDateFormat = 'MMM-YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The vMyDateVariable will have no impact or meaning until it is used in an expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=date(OrderMonth, '$(vMyDateFormat'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because variables cannot be used as format string in the chart Number format dialogs, it's not typical to set up exception date formats in variable strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 01:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750891#M664362</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-08T01:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: create two different SET DateFormat ?</title>
      <link>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750892#M664363</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;Try like this, create a separate Month-Year column in script like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(OrderMonth, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'MMM-YYYY'&lt;/SPAN&gt;) AS MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;FROM DataSource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Now use MonthYear field as filter.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jagan.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 02:06:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750892#M664363</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-01-08T02:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: create two different SET DateFormat ?</title>
      <link>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750893#M664365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the array of insights, Rob. It looks like I had slightly the wrong question/approach, and that the OrderDate part of the Date function was the gap in my knowledge I needed to fill in. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; (Someone else chimed in with that part after you too, and I'll tag them for helpful answer points.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 17:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750893#M664365</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2015-01-08T17:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: create two different SET DateFormat ?</title>
      <link>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750894#M664366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; Two correct answers related to DatE(OrderDate, ) approach, just had to give a helpful nod to the second one in the cue. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Date(OrderMonth, ) even&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 17:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750894#M664366</guid>
      <dc:creator>stevelord</dc:creator>
      <dc:date>2015-01-08T17:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: create two different SET DateFormat ?</title>
      <link>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750895#M664367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Jagan meant:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Date(&lt;STRONG&gt;MonthStart&lt;/STRONG&gt;(OrderDate), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'MMM-YYYY'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;) AS MonthYear&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 17:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/create-two-different-SET-DateFormat/m-p/750895#M664367</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-01-08T17:18:34Z</dc:date>
    </item>
  </channel>
</rss>

