<?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 Date Format Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322799#M1196966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Date(TimeStamp#( [Account open date], 'DD-MMM-YYYY hh:mm:ss')) as [Account open date]&lt;/P&gt;&lt;P&gt;change HH:MM:SS to hh:mm:ss&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2011 13:24:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-19T13:24:12Z</dc:date>
    <item>
      <title>Date Format Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322797#M1196964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm importing a daily account extract into QV, each day replacing the previous day's extract. We have a funny date format used in the extract, so my script looked like this (for date field [account open date]):&lt;/P&gt;&lt;P&gt;DATE(DATE#( [Account open date], 'DD-MMM-YY)) as [Account open date],&lt;BR /&gt; month(DATE(DATE#( [Account open date], 'DD-MMM-YY))) as [Account open Month],&lt;BR /&gt; year(DATE(DATE#( [Account open date], 'DD-MMM-YY))) as [Account open Year],&lt;BR /&gt; day(DATE(DATE#( [Account open date], 'DD-MMM-YY))) as [Account open Day]&lt;/P&gt;&lt;P&gt;I did this for all my date fields. Today, after uploading the new extract I noticed that all my data relating to dates are messed up. Upon investigation found that our IT department decided to change all dates in the system and extracts to 'DD-MMM-YYYY HH:MM:SS'&lt;/P&gt;&lt;P&gt;I changed my script to this:&lt;/P&gt;&lt;P&gt;TimeStamp(TimeStamp#( [Account open date], 'DD-MMM-YYYY HH:MM:SS')) as [Account open date],&lt;BR /&gt; month(TimeStamp(TimeStamp#( [Account open date], 'DD-MMM-YYYY HH:MM:SS'))) as [Account open month],&lt;BR /&gt; year(TimeStamp(TimeStamp#( [Account open date], 'DD-MMM-YYYY HH:MM:SS'))) as [Account open year],&lt;BR /&gt; day(TimeStamp(TimeStamp#( [Account open date], 'DD-MMM-YYYY HH:MM:SS'))) as [Account open day],&lt;/P&gt;&lt;P&gt;Now it seems that only the data for 2010 and 2011 has been loaded. There are no dates for older years. I tried to figure out why this happened and it seemed to be because all date TIMES older than 2010 has been defaulted to 00:00:00&lt;/P&gt;&lt;P&gt;So for 2010/2011 all dates are correct and will be e.g. 01-APR-2010 14:15:45. But for 2005-2009 they will be e.g. 01-APR-2007 00:00:00&lt;/P&gt;&lt;P&gt;Any ideas on how to fix this?&lt;/P&gt;&lt;P&gt;I don't need the timestamps AT ALL for my QV document, so will be happy to just load the date if that is easier...&lt;/P&gt;&lt;P&gt;This is quite urgent, any and all help will be greatly appreciated.&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 12:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322797#M1196964</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-04-19T12:50:08Z</dc:date>
    </item>
    <item>
      <title>Re. :Date Format Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322798#M1196965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;to remove the timestamp, i have used this in my case :&lt;/P&gt;&lt;P&gt;date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;(DayName([Created Time]),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322798#M1196965</guid>
      <dc:creator />
      <dc:date>2011-04-19T13:03:22Z</dc:date>
    </item>
    <item>
      <title>Date Format Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322799#M1196966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Date(TimeStamp#( [Account open date], 'DD-MMM-YYYY hh:mm:ss')) as [Account open date]&lt;/P&gt;&lt;P&gt;change HH:MM:SS to hh:mm:ss&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 13:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322799#M1196966</guid>
      <dc:creator />
      <dc:date>2011-04-19T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Date Format Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322800#M1196967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, My internet connection was a bit funky so I only saw you guys' suggestions today.&lt;/P&gt;&lt;P&gt;I ended up doing the following and it worked fine:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Date(Date#( left([Account open date],11), 'DD-MMM-YYYY')) as [Account open date],&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2011 11:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Format-Problem/m-p/322800#M1196967</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2011-04-20T11:12:48Z</dc:date>
    </item>
  </channel>
</rss>

