Similarities
Both have 5 Carbon sugar - pentose
Both contain a phosphate
Both contain adenine
Differences
DNA has a deoxyribose sugar whereas ATP has a ribose sugar
DNA can involve all four bases, ATP only adenine
DNA has 1 phosphate, ATP has three phosphates