I think I understand...
Currently what I am doing is :
doc.use(doc.newObject("MyClass"))
doc.set("date", sdf.format(mydate) )
...
doc.save()
With "mydate" being a Date. I think I did it because doc.set("date",
new
Date() ) was not working. It works with the formatted string, and only if
format in the SimpleDateFormat sdf is the same as in the Object "date"
field, which convinced me it was correct.
Do you mean I should give doc.set() a java.util.Date parameter instead of a
String ? From the code, it looks like I should...