Hey Ezequiel, So from my understanding, there are two concepts to “how” you are asking the question.
First Concept, Transposing-
You are asking, how do I take a song in D major, and transpose it up a minor 3rd to F major, which is also D minor. So if you are saying for example, you have a I IV...