Add toMongoDate method