Change createdDate attribute

0
Hi all,  I need to change attribute “createdDate” of an object stored in cache (not in DB yet). apidocs   The current date object converted to string looks like this   ...but the code throws an exception   Any thoughts?   Thanks in advance.  
asked
1 answers
0

OK, seems that Mendix team has intended something else with change method. At least for me it remains unknown due to very poor documentation sad
In this case a I have replaced change with setValue method and it does its job.

 

obj.setValue(getContext(), "createdDate", new Date());

 

answered