When was the Code of Hammurabi Written?

One Thousand seven hundred and eighty – six years before the birth of Christ. And with research you will gather where they were before then.