Between the two, Dialga is generally considered the stronger of the legendary Pokémon in a straight comparison. As the master of time and the mascot of Pokémon Diamond, Dialga boasts impressive stats and a powerful typing.
That said, "stronger" can be situational — Giratina, the ruler of the Distortion World, has its own unique strengths and holds its own in battle. But if you're asking which one has the edge overall, most would point to Dialga.