cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to set a datetime default value

sbixsbix
Champ in-the-making
Champ in-the-making
Hi everybody.
I need to have a default value for a datetome filed like 1st january 1900.
It seems not possibel at model level, and the datetime picker seems to haven't a default declaration.
Any idea?
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

have you tried putting an ISO 8601 formatted datetime string as the <default>-value in the model? This should work since Alfresco will try to convert the text of the <default>-value into the type of the property and for d:date / d:datetime it should use ISO 8601 date format parsing. So try putting 1900-01-01T00:00:00.000Z into your <default>-value.

Regards
Axel
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.