<?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 Issue in comparing date format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906673#M315001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below expression for comparing the date format of a field.&lt;/P&gt;&lt;P&gt;isnum(date(date#(datefield,'MM-DD-YYYY'))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load the datefield, then eventhough the values present in the field are in the format MM-DD-YYYY, but still it is returning 0.&lt;/P&gt;&lt;P&gt;I have to basically compare some field values against dofferent date formats and assign the values as described below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.If datefield has values in DD-MM-YYYY, then the field Date value should contain DD-MM-YYYY&lt;/P&gt;&lt;P&gt;2. If datefield has values in MM-DD-YYYY, then the field Date value should contain MM-DD-YYYY&lt;/P&gt;&lt;P&gt;3. If datefield has values in MM-DD-YYYY hh:mm:ss TT, then the field Date value should contain MM-DD-YYYY hh:mm:ss TT&lt;/P&gt;&lt;P&gt;4. 3. If datefield has values in hh:mm:ss, then the field Date value should contain hh:mm:ss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help in this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 09:29:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-04T09:29:33Z</dc:date>
    <item>
      <title>Issue in comparing date format</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906673#M315001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used the below expression for comparing the date format of a field.&lt;/P&gt;&lt;P&gt;isnum(date(date#(datefield,'MM-DD-YYYY'))).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I load the datefield, then eventhough the values present in the field are in the format MM-DD-YYYY, but still it is returning 0.&lt;/P&gt;&lt;P&gt;I have to basically compare some field values against dofferent date formats and assign the values as described below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.If datefield has values in DD-MM-YYYY, then the field Date value should contain DD-MM-YYYY&lt;/P&gt;&lt;P&gt;2. If datefield has values in MM-DD-YYYY, then the field Date value should contain MM-DD-YYYY&lt;/P&gt;&lt;P&gt;3. If datefield has values in MM-DD-YYYY hh:mm:ss TT, then the field Date value should contain MM-DD-YYYY hh:mm:ss TT&lt;/P&gt;&lt;P&gt;4. 3. If datefield has values in hh:mm:ss, then the field Date value should contain hh:mm:ss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help in this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 09:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906673#M315001</guid>
      <dc:creator />
      <dc:date>2015-06-04T09:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in comparing date format</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906674#M315002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;post your sample file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 09:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906674#M315002</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2015-06-04T09:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in comparing date format</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906675#M315003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into the alt() function, this should make it easy to parse different date and time formats in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming to your issue with a date field not being parsed correctly, could you post at least some samples of your date field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 09:34:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906675#M315003</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-04T09:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in comparing date format</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906676#M315004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Azma,&lt;/P&gt;&lt;P&gt;Please try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 12pt;"&gt;isnum&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 12pt;"&gt;date#&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 12pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Arial','sans-serif'; font-size: 12pt;"&gt;text&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Arial','sans-serif'; font-size: 12pt;"&gt;(datefield),'MM-DD-YYYY'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 10:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-in-comparing-date-format/m-p/906676#M315004</guid>
      <dc:creator>madhumitha</dc:creator>
      <dc:date>2015-06-04T10:25:23Z</dc:date>
    </item>
  </channel>
</rss>

