AnsweredAssumed Answered

How to assign current date to a d:date type property in a content model?

Question asked by chsun on Nov 16, 2018
Latest reply on Nov 18, 2018 by chsun

Hi,

 

I am defining an aspect model:

<aspect name="mt:myAspect">
    <properties>
        <property name="mt:effectiveDate">
            <type>d:date</type>
            <mandatory>true</mandatory>
            <default>(I want to use current date here)</default>
        </property>
    </properties>
</aspect>

Because this property shall be mandatory, the default value cannot be an empty string (the empty string will cause errors). Can you help please?

 

Thank you!

Outcomes