<?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: Date format with condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-format-with-condition/m-p/1561909#M441359</link>
    <description>&lt;P&gt;Use this,&lt;/P&gt;&lt;P&gt;ABC:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;A,b&lt;BR /&gt;US,02/03/2019&lt;BR /&gt;UK,02/17/2019&lt;BR /&gt;US,02/19/2019&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;AA:&lt;BR /&gt;load&lt;BR /&gt;A,&lt;BR /&gt;b,&lt;BR /&gt;If(A='US',Date(b,'MM/DD/YYYY'),Date(b,'DD/MM/YYYY')) as new_date&lt;BR /&gt;Resident ABC;&lt;/P&gt;&lt;P&gt;drop Table ABC;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 13:30:59 GMT</pubDate>
    <dc:creator>Somasundaram</dc:creator>
    <dc:date>2019-03-27T13:30:59Z</dc:date>
    <item>
      <title>Date format with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-with-condition/m-p/1561882#M441358</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on an application where I need to change the date format according to the value the user selects.&lt;/P&gt;&lt;P&gt;Ex: Suppose for a region field, if user selects&amp;nbsp; US, the date format should be MM/DD/YYYY and if user selects UK, the format should be DD/MM/YYYY. (only for example purpose)&lt;/P&gt;&lt;P&gt;I tried to use if condition in script; but it's not working.&lt;/P&gt;&lt;P&gt;Could you please help me for the same?&lt;/P&gt;&lt;P&gt;And is it possible to do the same in table box or straight table, where according to the region the date in the respective format be shown?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-with-condition/m-p/1561882#M441358</guid>
      <dc:creator>QV_learner</dc:creator>
      <dc:date>2024-11-16T21:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date format with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-with-condition/m-p/1561909#M441359</link>
      <description>&lt;P&gt;Use this,&lt;/P&gt;&lt;P&gt;ABC:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;A,b&lt;BR /&gt;US,02/03/2019&lt;BR /&gt;UK,02/17/2019&lt;BR /&gt;US,02/19/2019&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;AA:&lt;BR /&gt;load&lt;BR /&gt;A,&lt;BR /&gt;b,&lt;BR /&gt;If(A='US',Date(b,'MM/DD/YYYY'),Date(b,'DD/MM/YYYY')) as new_date&lt;BR /&gt;Resident ABC;&lt;/P&gt;&lt;P&gt;drop Table ABC;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 13:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-with-condition/m-p/1561909#M441359</guid>
      <dc:creator>Somasundaram</dc:creator>
      <dc:date>2019-03-27T13:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Date format with condition</title>
      <link>https://community.qlik.com/t5/QlikView/Date-format-with-condition/m-p/1561921#M441361</link>
      <description>&lt;P&gt;Try this,&lt;/P&gt;&lt;PRE&gt;=if(&lt;STRONG&gt;yourField&lt;/STRONG&gt;='US',date(today(),'&lt;SPAN&gt;MM/DD/YYYY&lt;/SPAN&gt;'),
if(&lt;STRONG&gt;yourField&lt;/STRONG&gt;='UK',date(today(),'&lt;SPAN&gt;DD/MM/YYYY&lt;/SPAN&gt;')))&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Mar 2019 13:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-format-with-condition/m-p/1561921#M441361</guid>
      <dc:creator>Shubham_Deshmukh</dc:creator>
      <dc:date>2019-03-27T13:43:58Z</dc:date>
    </item>
  </channel>
</rss>

