<?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 returning null Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637675#M595911</link>
    <description>&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;makedate(subfield(field,'-',1),subfield(field,'-',2),subfield(field,'-',-1))&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 09:10:34 GMT</pubDate>
    <dc:creator>florentina_doga</dc:creator>
    <dc:date>2019-10-21T09:10:34Z</dc:date>
    <item>
      <title>Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637671#M595909</link>
      <description>&lt;P&gt;I've attempted to format datetime to Date (YYYY/MM/DD) without any success. All I get is a null value. I've attempted the below formatting methods:&lt;/P&gt;&lt;P class="p1"&gt;1. Date(distribution_timestamp) as Date,&lt;BR /&gt;2. Date(Timestamp#(distribution_timestamp,'YYYY/MM/DD ')) as Date,&lt;BR /&gt;3. Date(Floor(Date#(Trim(distribution_timestamp), 'YYYY/MM/DD hh:mm:ss')), 'YYYY/MM/DD') as Date,&lt;BR /&gt;4. Date(distribution_timestamp,'YYYY/MM/DD') as Date&lt;BR /&gt;5. Date(Floor(Timestamp#(distribution_timestamp, 'YYYY/MM/DD hh:mm:ss')), 'YYYY/MM/DD') as Date,&lt;BR /&gt;6. Date(floor(distribution_timestamp,'YYYY/MM/DD ')) as Date,&lt;/P&gt;&lt;P class="p1"&gt;None of which were successful.&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;The Date formatting in the DB I am selecting from is as per the below:&lt;/P&gt;&lt;P class="p1"&gt;2019-01-25 14:16:59.0000000&lt;/P&gt;&lt;P class="p1"&gt;My Main tab has been set up as per the below:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;ThousandSep&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='&amp;nbsp;';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;DecimalSep&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='.';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;MoneyThousandSep&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='&amp;nbsp;';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;MoneyDecimalSep&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;=',';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;MoneyFormat&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='R #&amp;nbsp;##0,00;R-#&amp;nbsp;##0,00';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;TimeFormat&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='hh:mm:ss';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;DateFormat&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='YYYY/MM/DD';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;TimestampFormat&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='YYYY-MM-DD hh:mm:ss[.fff] TT';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;MonthNames&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;DayNames&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;LongMonthNames&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='January;February;March;April;May;June;July;August;September;October;November;December';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;LongDayNames&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='Monday;Tuesday;Wednesday;Thursday;Friday;Saturday;Sunday';&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;FirstWeekDay&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;=0;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;BrokenWeeks&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;=0;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;ReferenceDay&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;=4;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;FirstMonthOfYear&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;=1;&lt;BR /&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;&lt;STRONG&gt;&lt;I&gt;CollationLocale&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;='en-ZA';&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637671#M595909</guid>
      <dc:creator>mgdotcom</dc:creator>
      <dc:date>2024-11-16T19:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637674#M595910</link>
      <description>&lt;P&gt;field is text&lt;/P&gt;&lt;P&gt;&amp;nbsp;field=2019-01-25 14:16:59.0000000&lt;/P&gt;&lt;P&gt;use next expression in script&lt;/P&gt;&lt;P&gt;makedate(subfield(field,'-',1),subfield(field,'-',2),subfield(field,'-',-11)) as date&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 09:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637674#M595910</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2019-10-21T09:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637675#M595911</link>
      <description>&lt;P&gt;sorry&lt;/P&gt;&lt;P&gt;makedate(subfield(field,'-',1),subfield(field,'-',2),subfield(field,'-',-1))&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 09:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637675#M595911</guid>
      <dc:creator>florentina_doga</dc:creator>
      <dc:date>2019-10-21T09:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637682#M595912</link>
      <description>&lt;P&gt;I've applied&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s2"&gt;makedate&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;subfield&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;distribution_timestamp&lt;SPAN class="s1"&gt;,'-',1),&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;subfield&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;distribution_timestamp&lt;SPAN class="s1"&gt;,'-',2),&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;subfield&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;distribution_timestamp&lt;SPAN class="s1"&gt;,'-',-1)) &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;AS&lt;/SPAN&gt; DIS&lt;/P&gt;&lt;P class="p1"&gt;The value is still null.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 09:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637682#M595912</guid>
      <dc:creator>mgdotcom</dc:creator>
      <dc:date>2019-10-21T09:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637911#M595913</link>
      <description>&lt;P&gt;Hi Mgdotcom&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;=Makedate(SubField(distribution_timestamp,'-',1),SubField(distribution_timestamp,'-',2),left(SubField(distribution_timestamp,'-',-1),2))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637911#M595913</guid>
      <dc:creator>vhespinog</dc:creator>
      <dc:date>2019-10-21T15:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637931#M595914</link>
      <description>&lt;P&gt;I think knowing the format in which QlikView tries to load the date is important... when you load your date without any transformation... do you see this?&amp;nbsp;&lt;STRONG&gt;2019-01-25 14:16:59.0000000&lt;/STRONG&gt;. If you do, then try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date(Floor(Date#(Trim(distribution_timestamp), 'YYYY-MM-DD hh:mm:ss.fff')), 'YYYY/MM/DD') as Date,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1637931#M595914</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-10-21T15:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1641268#M595915</link>
      <description>&lt;P&gt;Mervin, did Sunny's last post work for you?&amp;nbsp; If so, please be sure to use the Accept as Solution button on his post to give him credit and confirm to others his solution worked.&amp;nbsp; If you are still working on things, let us know where things stand, so we can try to come up with further ideas.&amp;nbsp; About the best I have to try to help would be the following Design Blog link on Dates that may be somewhat useful.&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;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Date-Function/ba-p/1463157&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 14:15:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1641268#M595915</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-30T14:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date Format returning null Value</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1641270#M595916</link>
      <description>&lt;P&gt;I ended of going with&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Date&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;((&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;Left&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;(&lt;/SPAN&gt;distribution_timestamp&lt;SPAN class="s2"&gt;,10)),'YYYY/MM/DD') &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; Date&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Not ideal but it did the job.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 14:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-returning-null-Value/m-p/1641270#M595916</guid>
      <dc:creator>mgdotcom</dc:creator>
      <dc:date>2019-10-30T14:19:24Z</dc:date>
    </item>
  </channel>
</rss>

