<?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: Format a Date field in a Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276727#M517976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up using a calculated dimension as I do a Load * in my script and didn't want to list out all the fields!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Feb 2017 21:30:58 GMT</pubDate>
    <dc:creator>cliff_clayman</dc:creator>
    <dc:date>2017-02-01T21:30:58Z</dc:date>
    <item>
      <title>Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276723#M517972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to format a date field in a straight table and it is not taking the format.&amp;nbsp; Right now, the format looks like this in the straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/31/2017 12:00:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it to look like 1/31/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I coded the Text Format expression for the Dimension field as such:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Date(Left([Posting Date],10),'MM/DD/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not change from the original format.&amp;nbsp; When I add a Text Object and put in the same code, the format changes as expected.&amp;nbsp; What is the issue with how I am doing it in the straight table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 20:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276723#M517972</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-02-01T20:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276724#M517973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Floor([Posting Date]))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Floor(TimeStamp#([Posting Date], 'M&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;/D/YYYY h:mm:ss TT')))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 20:57:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276724#M517973</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-01T20:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276725#M517974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither one of those changed the display format.&amp;nbsp; It seems that nothing I put in the Text Format property seems to work.&amp;nbsp; I did test the Text Color to make sure it worked and it did.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276725#M517974</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-02-01T21:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276726#M517975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cliff, from your posts I think you are using the format option of the dimension tab, that&lt;SPAN style="font-size: 13.3333px;"&gt; option is to set bold, italic, etc... format of the text font, not the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data format for dimensions can to be done:&lt;/P&gt;&lt;P&gt;- In the script, while loading the data.&lt;/P&gt;&lt;P&gt;- In the Numbers tab of document properties.&lt;/P&gt;&lt;P&gt;- Using a calculated dimension.&lt;/P&gt;&lt;P&gt;- ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You only need one of those, the first option is usually the better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276726#M517975</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-02-01T21:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276727#M517976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up using a calculated dimension as I do a Load * in my script and didn't want to list out all the fields!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276727#M517976</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-02-01T21:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276728#M517977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's a resident load you can rename field before load, using the renamed field to create the field as a date and then drop the renamed field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be also done with preceding load&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(... as newField;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;from...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop oldField;&lt;/P&gt;&lt;P&gt;rename &lt;SPAN style="font-size: 13.3333px;"&gt;newField&lt;/SPAN&gt; to &lt;SPAN style="font-size: 13.3333px;"&gt;oldField&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way &lt;SPAN style="font-size: 13.3333px;"&gt;you will have a date field instead of a text field,&lt;/SPAN&gt; it will be a date in every spot is used, and gives better performance than using a calculated dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think if it's worth the effort, usually it does.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:51:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276728#M517977</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-02-01T21:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276729#M517978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not a resident load.&amp;nbsp; It's just a connection to an Access database and I pull all the fields from it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276729#M517978</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-02-01T21:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276730#M517979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And the preceding load option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 21:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276730#M517979</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-02-01T21:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276731#M517980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I couldn't get it to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date([Pstng Date]) AS [PostingDate],&lt;/P&gt;&lt;P&gt;&amp;nbsp; If([ICB Flag]='x','Yes','No') as Flag_ICB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ODBC CONNECT32 TO [MS Access Database;DBQ=D:\MyDatabase.accdb];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;DROP [Pstng Date];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;RENAME [PostingDate] to [Pstng Date];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM `MyTable`;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:09:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276731#M517980</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-02-01T22:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276732#M517981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have an access db to test the preceding load but maybe:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Date(Floor(TimeStamp#(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Pstng Date]&lt;/SPAN&gt;, 'M&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;/D/YYYY h:mm:ss TT'))) &lt;/STRONG&gt;&lt;/SPAN&gt;AS [PostingDate],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; If([ICB Flag]='x','Yes','No') as Flag_ICB;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;LOAD *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ODBC CONNECT32 TO [MS Access Database;DBQ=D:\MyDatabase.accdb];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Just to commet: This is not so important if you are using this for self-consume and you are not planning to use that date in other operations.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276732#M517981</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-02-01T22:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276733#M517982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This doesn't work.&amp;nbsp; Also, I don't see where you rename and drop the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276733#M517982</guid>
      <dc:creator>cliff_clayman</dc:creator>
      <dc:date>2017-02-01T22:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Format a Date field in a Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276734#M517983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only copied that part, but the rest should be as it was in your previous post. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Anyway, keep the calculated dimension if it works. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 22:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-a-Date-field-in-a-Straight-Table/m-p/1276734#M517983</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2017-02-01T22:42:46Z</dc:date>
    </item>
  </channel>
</rss>

