Move date check code to the RNG code