<?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 convert numbervalue MMYYYY in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149046#M27257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this not a true data in sql. Its just a number field that I want to convert to a date MMDDYY. I thought that was what monthstart does, but year is now working correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Jul 2009 08:33:43 GMT</pubDate>
    <dc:creator>karensmith</dc:creator>
    <dc:date>2009-07-11T08:33:43Z</dc:date>
    <item>
      <title>convert numbervalue MMYYYY</title>
      <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149042#M27253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;The below code is not converting MMYYYY value correctly it converts it to 11/1/4752&lt;BR /&gt;4/1/4780&lt;BR /&gt;9/1/4807&lt;BR /&gt;1/1/4835&lt;BR /&gt;6/1/4862&lt;BR /&gt;10/1/4889&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;BR /&gt;monthstart(date(01 &amp;amp; MONTHYEAR,'DDMMYYYY')) as INVOICE_DATE&lt;BR /&gt;can someone tell me what I am doing wrong?&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 00:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149042#M27253</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-11T00:56:42Z</dc:date>
    </item>
    <item>
      <title>convert numbervalue MMYYYY</title>
      <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149043#M27254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the original data field look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 01:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149043#M27254</guid>
      <dc:creator />
      <dc:date>2009-07-11T01:09:39Z</dc:date>
    </item>
    <item>
      <title>convert numbervalue MMYYYY</title>
      <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149044#M27255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The original data is number field on SQL server ---&amp;gt; to qvd file. I need this value represented by a date filed because other dates in the application are in true date formats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 02:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149044#M27255</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-11T02:15:54Z</dc:date>
    </item>
    <item>
      <title>convert numbervalue MMYYYY</title>
      <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149045#M27256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;why don't you use the Monthstart-function as per Help-File. Normally QV should be able to "understand" the date from SQL-query - but you may also force it with date()-function first&lt;/P&gt;&lt;P&gt;quote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4 class="hcp10"&gt;MonthStart&lt;A id="MonthStart" name="MonthStart"&gt;&lt;/A&gt;( date [, shift = 0] )&lt;/H4&gt;&lt;P class="hcp25"&gt;Returns a value corresponding to a timestamp with the first millisecond of the first date of the month containing date. The default output format will be the DateFormat set in the script. Shift is an integer, where the value 0 indicates the month which contains date. Negative values in shift indicate preceding months and positive values indicate succeeding months.&lt;/P&gt;&lt;H2 class="hcp21"&gt;Example:&lt;/H2&gt;&lt;P class="hcp25"&gt;monthstart ( '2001-10-19' ) returns '2001-10-01' with an underlying numeric value corresponding to '2001-10-01 00:00:00.000'&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;unquote&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 02:34:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149045#M27256</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2009-07-11T02:34:05Z</dc:date>
    </item>
    <item>
      <title>convert numbervalue MMYYYY</title>
      <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149046#M27257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this not a true data in sql. Its just a number field that I want to convert to a date MMDDYY. I thought that was what monthstart does, but year is now working correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 08:33:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149046#M27257</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-11T08:33:43Z</dc:date>
    </item>
    <item>
      <title>convert numbervalue MMYYYY</title>
      <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149047#M27258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the date is stored as 072009 then try something lik this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#('01' &amp;amp; MONTHYEAR,'DDMMYYYY')) &lt;B&gt;as&lt;/B&gt; INVOICE_DATE&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Jul 2009 20:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149047#M27258</guid>
      <dc:creator />
      <dc:date>2009-07-11T20:46:06Z</dc:date>
    </item>
    <item>
      <title>convert numbervalue MMYYYY</title>
      <link>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149048#M27259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom, that code worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Jul 2009 04:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-numbervalue-MMYYYY/m-p/149048#M27259</guid>
      <dc:creator>karensmith</dc:creator>
      <dc:date>2009-07-12T04:13:21Z</dc:date>
    </item>
  </channel>
</rss>

