To know for sure, you'd need to:
* Identify the exact transmission in the Dakota: (e.g., AW4, AX-15, etc.) The transmission's identification tag will provide this.
* Identify the exact transmission in the Ram: Similarly, find the transmission's identification tag in the Ram.
* Compare the specifications: Even if they are the same type of transmission (e.g., both AX-15s), there might be subtle differences in the bellhousing bolt pattern (how it connects to the engine) or other mounting points that prevent a direct swap. The output shaft length might also be different.
Without this information, it's impossible to give a definitive yes or no. Parts diagrams for each specific truck and transmission would be very helpful in making this determination. A reputable transmission shop or mechanic would be able to verify compatibility.