<?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 CSV DateTime Stamp not being handled properly in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1605879#M736897</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a csv in which I have a datetime field. Some the values in this field are of 24 hour format mm/dd/yyyy hh:mm while some are in 12 hour format&amp;nbsp;mm/dd/yyyy hh:mm AM/PM. When I load the data with data profiling enabled, the 24 hour format values are not shown in the data manager. When I turned data profiling off and tried loading the data, all the values showed up, but when I tried to calculate a new Dates Only field in the sheet, it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really appreciate it if you could solve this issue. For convenience I have given the examples of both below:&lt;/P&gt;&lt;P&gt;'07/24/2019 13:13' Not detected&lt;/P&gt;&lt;P&gt;'07/24/2019 01:13' PM is detected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>hrish</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>CSV DateTime Stamp not being handled properly</title>
      <link>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1605879#M736897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a csv in which I have a datetime field. Some the values in this field are of 24 hour format mm/dd/yyyy hh:mm while some are in 12 hour format&amp;nbsp;mm/dd/yyyy hh:mm AM/PM. When I load the data with data profiling enabled, the 24 hour format values are not shown in the data manager. When I turned data profiling off and tried loading the data, all the values showed up, but when I tried to calculate a new Dates Only field in the sheet, it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd really appreciate it if you could solve this issue. For convenience I have given the examples of both below:&lt;/P&gt;&lt;P&gt;'07/24/2019 13:13' Not detected&lt;/P&gt;&lt;P&gt;'07/24/2019 01:13' PM is detected&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1605879#M736897</guid>
      <dc:creator>hrish</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: CSV DateTime Stamp not being handled properly</title>
      <link>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1605967#M736898</link>
      <description>&lt;P&gt;Hi Hrish,&lt;/P&gt;&lt;P&gt;if you don't want time for your calculation try to convert that column with the help of Date ()&amp;amp; Date#() functions&lt;/P&gt;&lt;P&gt;date#(string, dateformat)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;converts&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a string to a date, optionally using the supplied date format&lt;/P&gt;&lt;P&gt;date()&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;formats&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;a date to the default date format for your system, or optionally the supplied date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;For example:&lt;/P&gt;&lt;P&gt;date(today(),'YYYY_DD_MM') returns&amp;nbsp; 2019_25_07&lt;/P&gt;&lt;P&gt;date(today(),'MM/DD/YY') returns&amp;nbsp; 07/25/19&lt;/P&gt;&lt;P&gt;Combination of both:&lt;/P&gt;&lt;P&gt;date(date#('2019_25_07','YYYY_DD_MM'),'MM/DD/YYYY') returns 07/25/2019&lt;/P&gt;&lt;P&gt;if you need time also then follow like below&lt;/P&gt;&lt;P&gt;date(date#( '20141029122728' , 'YYYYMMDDhhmmss'), 'DD.MM.YYYY') as date&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;time(date#( '20141029122728' , 'YYYYMMDDhhmmss'), hh:mm:ss) as time&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 07:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1605967#M736898</guid>
      <dc:creator>ramasaisaksoft</dc:creator>
      <dc:date>2019-07-25T07:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: CSV DateTime Stamp not being handled properly</title>
      <link>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1605973#M736899</link>
      <description>&lt;P&gt;Hello Ramasaisoft,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is the values in 24 hour format are not being detected in the Data Manager at all, and being displayed as null.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1605973#M736899</guid>
      <dc:creator>rish</dc:creator>
      <dc:date>2019-07-25T08:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: CSV DateTime Stamp not being handled properly</title>
      <link>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1614039#M736900</link>
      <description>&lt;P&gt;Hey Rish, I believe you likely are trying to address this in the QlikView script, correct?&amp;nbsp; What I believe you need here are two things, decision as to which time format you want the data to be in when it ends up in the QlikView app and once that is determined, logic in the script to check the format and either reformat or read as-is.&amp;nbsp; I am pretty certain the issue is the mixed values, we are going to need things in a consistent value state, and the only good way to do this is during the load from the source environment, but you could also potentially clean things up in the back-end as well, if you want to run a stored procedure or something to handle things, you could do that as well I suspect.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the following Design Blob post may be helpful in this case too:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Why-don-t-my-dates-work/ba-p/1465849&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 20:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/CSV-DateTime-Stamp-not-being-handled-properly/m-p/1614039#M736900</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-08-19T20:33:58Z</dc:date>
    </item>
  </channel>
</rss>

