Setting jcr:Property of type Date with value dynamically
I understood on how set jcr:property of type date by doing this
Calendar cal = Calendar.getInstance();
node.setProperty("publishDate",cal);
How to add a property of type Date using Java?
What it does is it sets property with Name and type date but value it takes as the current Local time.
I want to update value.
Can anyone help.