cancel
Showing results for 
Search instead for 
Did you mean: 

Date Format in Content Model

dev
Champ in-the-making
Champ in-the-making
Hi,

I am trying to add a date field to my workdesk through the content model. In my content model, I have added a property with type d:date.

But when I select the date, it always comes up in the format MM/DD/YYYY hh:mm. I do not want the time to be there in the date when I select it.

How can this be done. Please help
1 REPLY 1

rjohnson
Star Contributor
Star Contributor
If you are using share then unless you have defined a custom form the forms engine will use the default date control and that, by default, shows the time. Create an add and an update form for your custome document type and explicit;y set the date fcontrol to be used for that field with code such as


               <field id="your:dateproperty"  label-id="prop.your_dateproperty">
                  <control template="/org/alfresco/components/form/controls/date.ftl">
                     <control-param name="showTime">false</control-param>
                  </control>
               </field>