Short version: You cannot get Cranidos in Pokémon Diamond. It's a Pearl-exclusive fossil Pokémon. Diamond players get Shieldon (Armor Fossil) instead.
Since the fossil doesn't spawn in Diamond, you have three options:
Version-exclusive fossils date to Gen III (Claw/Root Fossil). Diamond/Pearl continued the tradition: Skull Fossil (Cranidos) ↔ Pearl, Armor Fossil (Shieldon) ↔ Diamond. It drives trading—the series' social core.
Rampardos (Cranidos's evolution) boasts a monstrous 165 base Attack—among the highest non-legendary in the game. If you're building a Rock-type nuke, the trade is worth it.