How do I update column of type date using server code?

I have a column in one of my collection which is of date type. How do I add rows to that collection using server script?

This is what my code is

var myDate = new Date();
myDate.setTime(myDate.getTime() + 30*60*1000);
var myObj = {

Collection.createObject(const_DB_ID, collectionName, myObj);

But it gives this error message - "{ [Error: com.mongodb.BasicDBObject cannot be cast to java.lang.String] code: '0' }".
1 person has
this question
This topic is no longer open for comments or replies.