<?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: Change date format in script from US to UK format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246213#M707358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I not sure I get exact where you run in to problems, so if the following is not helpful please provide more details on the problem sympthoms that you observe. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In genral it is always better to solve formatting issues in the script, since then you get simpler expressions in the application front end, and also only use process for formatting during reloads. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that when working with dual values like dates, you might need to run both Date() and Date#() in order to set both the numeric value and the textual presentation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have formatted the date value properly, and want to use it for further operations a preceeding load setup is a easy way to rework or use the value. See my calendar application as an example of preceeding loads; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/qlikviews/http://community.qlik.com/qlikviews/1022"&gt;http://community.qlik.com/qlikviews/1022&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2011 09:32:38 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2011-11-22T09:32:38Z</dc:date>
    <item>
      <title>Change date format in script from US to UK format</title>
      <link>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246209#M707354</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 am trying to change the format of a US based excel spreadsheet from US to UK (i.e. from MM/DD/YYYY to DD/MM/YYYY) in the script. Whilst I can do it in the spreadsheet it isn't feasible as the data is updated on a daily basis. I know I can simply do the following expression in the script;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;'MM/DD/YYYY'&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;as NewDate&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;but it doesn't really fix the problem as I want to create a monthyear field from this as well and it won't work. Does anyone have any suggestions how to fix this in the script or otherwise?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;Ralph &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246209#M707354</guid>
      <dc:creator />
      <dc:date>2011-11-22T09:19:43Z</dc:date>
    </item>
    <item>
      <title>Change date format in script from US to UK format</title>
      <link>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246210#M707355</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 it with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(right(Date,4),left(Date,2),mid(Date,4,2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Succes!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246210#M707355</guid>
      <dc:creator />
      <dc:date>2011-11-22T09:22:28Z</dc:date>
    </item>
    <item>
      <title>Change date format in script from US to UK format</title>
      <link>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246211#M707356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Halmar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for this, do you know how to make a month/year date from this as well, e.g. MMM/YYYY?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ralph &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246211#M707356</guid>
      <dc:creator />
      <dc:date>2011-11-22T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Change date format in script from US to UK format</title>
      <link>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246212#M707357</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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(newdate,'MMM') &amp;amp; '/' &amp;amp; date(newdate,'YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Halmar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246212#M707357</guid>
      <dc:creator />
      <dc:date>2011-11-22T09:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Change date format in script from US to UK format</title>
      <link>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246213#M707358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I not sure I get exact where you run in to problems, so if the following is not helpful please provide more details on the problem sympthoms that you observe. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In genral it is always better to solve formatting issues in the script, since then you get simpler expressions in the application front end, and also only use process for formatting during reloads. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that when working with dual values like dates, you might need to run both Date() and Date#() in order to set both the numeric value and the textual presentation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have formatted the date value properly, and want to use it for further operations a preceeding load setup is a easy way to rework or use the value. See my calendar application as an example of preceeding loads; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/qlikviews/http://community.qlik.com/qlikviews/1022"&gt;http://community.qlik.com/qlikviews/1022&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246213#M707358</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-11-22T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change date format in script from US to UK format</title>
      <link>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246214#M707359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calling the Date function twice seems a bit unecassary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;(newdate,'MMM') &amp;amp; '/' &amp;amp; date(newdate,'YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to make the formatting in one call instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(newdate,'MMM/YYYY')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 09:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-date-format-in-script-from-US-to-UK-format/m-p/246214#M707359</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-11-22T09:50:34Z</dc:date>
    </item>
  </channel>
</rss>

