cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the format of the show time

rock_tu
Champ on-the-rise
Champ on-the-rise
Hello all
I have encountered a problem,in a field the created time show is 周三 5 三月 2014 20:42:43,at the mount that,I want to show the created time is 周三 5 三月 2014 How can I do it,anyone can help me? thank you very much!
1 REPLY 1

andy2_0
Champ in-the-making
Champ in-the-making
Please refer to the following post:
http://forums.alfresco.com/forum/developer-discussions/content-modeling/date-format-content-model-01...

the solution is from Bob Johnson, I don't try it out so I don't know if it works.

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>