AnsweredAssumed Answered

Datetime in Alfresco

Question asked by spilby on Dec 3, 2010
Latest reply on Dec 3, 2010 by spilby
Hi everyone,

I want to upload a custom property to Alfresco like this:

Utils.createNamedValue(Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, ArchivoConstants.BIRTHDAY_DATE), my_date);

But this property is a Datetime, not a String, and when I want to obtain this property give me a Java exception when I parse the date.

When I see in Alfresco Node Browser the created or modified dates of the nodes, these have the property type: {}datetime. For example:

Name -> {}created   

Value -> Fri Nov 26 10:10:35 CET 2010

Property Type -> {}datetime   

Value Type ->

But my properties have this Properties:

Name -> {}birthday_date   

Value -> Wed Dec 01 17:46:09 CET 2010
Property Type ->

Value Type -> {}id

What can I do tp upload the property type of datetime with a Java method? Like the createNamedValue or createQNameString.