Pass Date object into mongo docs.