<?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 load format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613306#M734770</link>
    <description>&lt;P&gt;Thanks for the swift response!&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;DATE&lt;/STRONG&gt; worked like a charm, but the &lt;STRONG&gt;TIME&lt;/STRONG&gt; produced an unexpected result. All the records reflect TIME as: &lt;STRONG&gt;12/30/99 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;** your script for DATE and TIME look to have the same format i.e. 'MM/DD/YYYY hh:mm:ss.fff')), 'M/D/YY')....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is this correct, if I need a TIME output?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2019 14:29:06 GMT</pubDate>
    <dc:creator>Lloyd</dc:creator>
    <dc:date>2019-08-16T14:29:06Z</dc:date>
    <item>
      <title>Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613206#M734767</link>
      <description>&lt;P&gt;Hi. I’m new to QlikView, and struggling with a date format.&lt;/P&gt;&lt;P&gt;* FYI - I’m running: QlikView x 64 Personal Edition (QlikView April 2019 SR1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I’ve saved some PC performance data, in a csv file. I can load data file successfully. But when I try to load a &lt;STRONG&gt;&lt;U&gt;date from the date timestamp&lt;/U&gt;&lt;/STRONG&gt; – it returns&amp;nbsp; blank.&lt;/P&gt;&lt;P&gt;See load statement, and sample records from csv file below.&lt;/P&gt;&lt;P&gt;What should the preceding load statement be, so correctly display a 1) date and 2) time&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date#( perfdatetime, 'M/D/YY') as Date,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(perfdatetime) as [Performance Time];&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt; [(PDH-CSV 4.0) (South Africa Standard Time)(-120)] as perfdatetime,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [\\LLOYD-PC\Memory\Available MBytes] as [Available MBytes],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [\\LLOYD-PC\Processor(_Total)\% Processor Time] as [% Processor Time]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[D:\Work\QlikView\LLOYD-PC_20190816-000002\DataCollector01.csv]&lt;BR /&gt;(txt, codepage is 28591, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"(PDH-CSV 4.0) (South Africa Standard Time)(-120)","\\LLOYD-PC\Memory\Available MBytes","\\LLOYD-PC\Processor(_Total)\% Processor Time"&lt;/P&gt;&lt;P&gt;"08/16/2019 09:48:52.865","3977","18.361718800942505"&lt;/P&gt;&lt;P&gt;"08/16/2019 09:49:07.863","3979","11.300763899761733"&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:43:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613206#M734767</guid>
      <dc:creator>Lloyd</dc:creator>
      <dc:date>2024-11-16T02:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613243#M734768</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD *,
     Date(Floor(TimeStamp#(perfdatetime, 'MM/DD/YYYY hh:mm:ss.fff')), 'M/D/YY') as Date, 
     Time(Frac(TimeStamp#(perfdatetime, 'MM/DD/YYYY hh:mm:ss.fff'))) as [Performance Time];

LOAD [(PDH-CSV 4.0) (South Africa Standard Time)(-120)] as perfdatetime,
     [\\LLOYD-PC\Memory\Available MBytes] as [Available MBytes],
     [\\LLOYD-PC\Processor(_Total)\% Processor Time] as [% Processor Time]
FROM
[D:\Work\QlikView\LLOYD-PC_20190816-000002\DataCollector01.csv]
(txt, codepage is 28591, embedded labels, delimiter is ',', msq);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613243#M734768</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-16T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613246#M734769</link>
      <description>&lt;P&gt;I guess this should work out:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Date(Date#(Left(perfdatetime, 10) 'MM/DD/YYYY'),&amp;nbsp;'M/D/YY') as Date,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Time(Time#(Mid(perfdatetime, 12, 5), 'HH:MM'), 'HH:MM') as [Performance Time].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To clarify the formulas you should know that Date#, Time# works as an interpretation functions and helps QV to understand the field as a date or time while Date, Time works as formatting functions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please check this out:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/InterpretationFunctions/date_hash.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Date.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/FormattingFunctions/Date.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 11:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613246#M734769</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-08-16T11:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613306#M734770</link>
      <description>&lt;P&gt;Thanks for the swift response!&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;DATE&lt;/STRONG&gt; worked like a charm, but the &lt;STRONG&gt;TIME&lt;/STRONG&gt; produced an unexpected result. All the records reflect TIME as: &lt;STRONG&gt;12/30/99 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;** your script for DATE and TIME look to have the same format i.e. 'MM/DD/YYYY hh:mm:ss.fff')), 'M/D/YY')....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is this correct, if I need a TIME output?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613306#M734770</guid>
      <dc:creator>Lloyd</dc:creator>
      <dc:date>2019-08-16T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613325#M734771</link>
      <description>&lt;P&gt;The time format would normally be 'hh:mm' or 'hh:mm:ss'....&lt;/P&gt;&lt;P&gt;Lower case 'm'&amp;nbsp; minutes, upper case 'M' means months.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613325#M734771</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-08-16T14:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613328#M734772</link>
      <description>&lt;P&gt;Can you share how your environmental variables are set?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 14:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613328#M734772</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-16T14:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613337#M734773</link>
      <description>&lt;P&gt;SET ThousandSep='&amp;nbsp;';&lt;BR /&gt;SET DecimalSep=',';&lt;BR /&gt;SET MoneyThousandSep='&amp;nbsp;';&lt;BR /&gt;SET MoneyDecimalSep=',';&lt;BR /&gt;SET MoneyFormat='R#&amp;nbsp;##0,00;-R#&amp;nbsp;##0,00';&lt;BR /&gt;SET TimeFormat='hh:mm:ss';&lt;BR /&gt;SET DateFormat='YYYY/MM/DD';&lt;BR /&gt;SET TimestampFormat='YYYY/MM/DD hh:mm:ss[.fff]';&lt;BR /&gt;SET FirstWeekDay=6;&lt;BR /&gt;SET BrokenWeeks=1;&lt;BR /&gt;SET ReferenceDay=0;&lt;BR /&gt;SET FirstMonthOfYear=1;&lt;BR /&gt;SET CollationLocale='en-ZA';&lt;BR /&gt;SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;SET LongMonthNames='January;February;March;April;May;June;July;August;September;October;November;December';&lt;BR /&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;SET LongDayNames='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:03:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613337#M734773</guid>
      <dc:creator>Lloyd</dc:creator>
      <dc:date>2019-08-16T15:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613342#M734774</link>
      <description>&lt;P&gt;My bad... try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time(Frac(TimeStamp#(perfdatetime, 'MM/DD/YYYY hh:mm:ss.fff'))) as [Performance Time];&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613342#M734774</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-08-16T15:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date load format</title>
      <link>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613349#M734775</link>
      <description>&lt;P&gt;Fantastic, solved!&lt;/P&gt;&lt;P&gt;Thanks for great assistance&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-load-format/m-p/1613349#M734775</guid>
      <dc:creator>Lloyd</dc:creator>
      <dc:date>2019-08-16T15:18:36Z</dc:date>
    </item>
  </channel>
</rss>

