What year was the first hat invented?

The earliest known hat is from 7500 BC in Çatal Höyük.