Handle mongodb dates