<?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 notation on custom Aikau page in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301898#M255028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your blog and your PR. I have installed Aikau 1.0.90 and used the format property. Ever things works fine now, I can totally control the format of date/time. Either bij keywords (isoDate, shortDate) or by variables (dd-mm-yy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 09:56:26 GMT</pubDate>
    <dc:creator>rhannink</dc:creator>
    <dc:date>2016-10-19T09:56:26Z</dc:date>
    <item>
      <title>Date notation on custom Aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301894#M255024</link>
      <description>Hello,I have made a custom Aikau page showing all custom aspects of some documents in table form. Two of the custom aspects are of the type d:date. When I display the aspects on the Aikau page using the alfresco/renderers/Property‍ widget, the date is showing as:Zo 5 jun 2016 00:00:00I would like to</description>
      <pubDate>Wed, 22 Jun 2016 13:17:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301894#M255024</guid>
      <dc:creator>rhannink</dc:creator>
      <dc:date>2016-06-22T13:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date notation on custom Aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301895#M255025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like you're not in luck here with the out of the box PropertyWidget, as although it provides a renderDate(date, format) function which is uses for rendering date values, it never uses the format argument and so doesn't give you the option of specifying a format preference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Creating a custom widget that extends from Property that takes a date format configuration argument is probably your simplest solution, e.g. something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;define(["dojo/_base/declare",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "alfresco/renderers/Property"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ], &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(declare, Property) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; return declare([Property], {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; requiredDateFormat: null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Renders a date property using the either the format argument&amp;nbsp; or&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * requiredDateFormat as the date format.&amp;nbsp; requiredDateFormat will take &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * preference if set&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @instance&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderDate: function(date, format) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; preferredFormat = (this.requiredDateFormat ? this.requiredDateFormat : format)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return this.formatDate(this.fromISO8601(date), preferredFormat);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; });&lt;BR /&gt;});&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This just simply overrides the Property's renderDate method to use a config, requiredDateFormat, as the desired format.&amp;nbsp; To use it you just set your desired format in your JSON model as a config property when specifying your Property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: I haven't tested this, run this, built this so it's intended as a direction you could go in, not a working solution (although it may be &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steven &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 14:52:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301895#M255025</guid>
      <dc:creator>steven_okennedy</dc:creator>
      <dc:date>2016-06-23T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Date notation on custom Aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301896#M255026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;steven.okennedy _&lt;/B&gt;‌ is correct in that no version of Aikau supports what you require (at the time of writing the latest version available is 1.0.85 - if you're reading this any time after 15th Sept 2016 then you may want to check what is available in later releases!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the preferred approach here would be for you to raise an &lt;A href="https://github.com/Alfresco/Aikau/issues" rel="nofollow noopener noreferrer"&gt;issue&lt;/A&gt; on the GitHub project to make us aware of your requirement and then we can actually do something about it. Better yet, rather than just writing a custom widget yourself you could make updates to the existing widgets or add an entirely new widget and contribute it back to the project as a &lt;A href="https://github.com/Alfresco/Aikau/pulls" rel="nofollow noopener noreferrer"&gt;pull request&lt;/A&gt;. There is a new backwards compatibly Aikau release on a weekly basis so you wouldn't need to wait very long to take advantage of your contribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ensures that others will also be able to benefit from the addition - it also means that Aikau team will need to support it going forwards which will ensure that your usage of the widget&amp;nbsp;is future proof.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 09:42:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301896#M255026</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-15T09:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date notation on custom Aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301897#M255027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've created a &lt;A _jive_internal="true" href="https://community.alfresco.com/community/ecm/blog/2016/09/22/creating-an-aikau-pull-request-for-date-formatting" rel="nofollow noopener noreferrer"&gt;blog post&lt;/A&gt; explaining how a feature like this can be contributed back. I've raised a PR and the solution should be available from Aikau 1.0.88&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 14:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301897#M255027</guid>
      <dc:creator>ddraper</dc:creator>
      <dc:date>2016-09-22T14:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date notation on custom Aikau page</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301898#M255028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your blog and your PR. I have installed Aikau 1.0.90 and used the format property. Ever things works fine now, I can totally control the format of date/time. Either bij keywords (isoDate, shortDate) or by variables (dd-mm-yy).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 09:56:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/date-notation-on-custom-aikau-page/m-p/301898#M255028</guid>
      <dc:creator>rhannink</dc:creator>
      <dc:date>2016-10-19T09:56:26Z</dc:date>
    </item>
  </channel>
</rss>

