How can I create ISODate object in mongodb using ODM?
$object->dateCreated = "new ISODate()";
$object->save();
it saves plain text.. and I need that date object. Is there a way?
Thanks
How can I create ISODate object in mongodb using ODM?
$object->dateCreated = "new ISODate()";
$object->save();
it saves plain text.. and I need that date object. Is there a way?
Thanks