Impossible in-game. Jirachi is a Mythical Pokémon unobtainable through normal play in Diamond/Pearl/Platinum.
Legitimate historical methods (now defunct):
Today: Transfer via Pokémon HOME from Pokémon GO (Special Research), Sword/Shield (Mystery Gift), or Brilliant Diamond/Shining Pearl (Oak's Letter event).