Format a moment instance as ObjectID-string for use in MongoDB queries