Hello everybody,
I have to update a custom date property from a node of my Alfresco installation. So, I run next javascript code:
var node = search.luceneSearch('@sys\\:node-uuid:"abd3a8f7-66a5-4288-bf29-b9f31510cecb"');
node = node[0]; //get node to update
node.properties["xxx:customDate"] = "2017-03-31T13:14:17";
node.save();
print(node.properties["xxx:customDate"]);
Output is:
2017-03-31T13:14:17
However, If I explore this node in node browser, property xxx:customDate, whose is type d:date, has got old value.
Have you any idea how update a custom date propery?
Thanks.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.