Obtaining old pokemon from previous gen

is there a way to transfer my DS save file or drastic save file to transfer the pokemon i caught from i.e platinum, black 2 in a legit or 3rd party software way?

Use save file editors such as PKHeX.