“How do they date rock that doesnt have any fossils in it?”
Rock without fossils is often volcanic and can be dated using radioactive decay.
(The strata that contains fossils — unless you have a Pompeii-like situation generally is not datable in that fashion.)
Can rock with fossils be dated using radioactive decay, and if it can, do they do that?