Donatello created his David when he did because first, he was in Italy, the focal point of art, and second, the time. It was around the 1440s when he made it, because at that time he had motivation to do so.
Donatello affects the modern world because of his expertise. Even though he sculpted in the 1400s, he still is an inspiration for artists today 700 years later.