We prove a theorem on the uniform convergence of the local time of an ergodic diffusion. This result is then used to investigate certain estimators of the invariant density of an ergodic diffusion, including kernel estimators. We show that the pointwise consistency of these estimators can be strengthened to uniform consistency