When was The Tale of Genji written?

Considered the oldest full novel in the world, The Tale of Genji was written in Japan toward the start of the eleventh century.