<?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: How to assign current date to a d:date type property in a content model? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69040#M22825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write a behavior that sets the property with the current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not familiar with behaviors, check out my tuorial on the topic: &lt;A class="link-titled" href="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" title="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;Implementing Custom Behaviors in Alfresco | ECMArchitect | Alfresco Developer Tutorials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Nov 2018 05:04:58 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2018-11-17T05:04:58Z</dc:date>
    <item>
      <title>How to assign current date to a d:date type property in a content model?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69039#M22824</link>
      <description>Hi,I am defining an aspect model:&amp;lt;aspect name="mt:myAspect"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;properties&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="mt:effectiveDate"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;d:date&amp;lt;/type&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;default&amp;gt;(I want to use current date here)&amp;lt;/defau</description>
      <pubDate>Fri, 16 Nov 2018 08:28:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69039#M22824</guid>
      <dc:creator>chsun</dc:creator>
      <dc:date>2018-11-16T08:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign current date to a d:date type property in a content model?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69040#M22825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write a behavior that sets the property with the current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are not familiar with behaviors, check out my tuorial on the topic: &lt;A class="link-titled" href="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" title="https://ecmarchitect.com/alfresco-developer-series-tutorials/behaviors/tutorial/tutorial.html" rel="nofollow noopener noreferrer"&gt;Implementing Custom Behaviors in Alfresco | ECMArchitect | Alfresco Developer Tutorials&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2018 05:04:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69040#M22825</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2018-11-17T05:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign current date to a d:date type property in a content model?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69041#M22826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine that from the model point of view you can set an ISO 8601 date by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, in the Jeff's line, here you have a small customization for doing similar&amp;nbsp;thing with cm:effectivity aspect and cm:to property (in this case the behaviour is for setting one month from the creation&amp;nbsp;date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/zylklab/zk-qshared-effectivity" title="https://github.com/zylklab/zk-qshared-effectivity" rel="nofollow noopener noreferrer"&gt;GitHub - zylklab/zk-qshared-effectivity: Public url documents (qshared) with effectivity in Alfresco Share&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Nov 2018 09:32:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69041#M22826</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2018-11-17T09:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign current date to a d:date type property in a content model?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69042#M22827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jeff Potts, Your tutorial is great. I will study it carefully.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 01:11:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69042#M22827</guid>
      <dc:creator>chsun</dc:creator>
      <dc:date>2018-11-18T01:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to assign current date to a d:date type property in a content model?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69043#M22828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cesar Capillas. I will use your code as a reference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 01:12:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-assign-current-date-to-a-d-date-type-property-in-a/m-p/69043#M22828</guid>
      <dc:creator>chsun</dc:creator>
      <dc:date>2018-11-18T01:12:33Z</dc:date>
    </item>
  </channel>
</rss>

