Daily dress codes worldwide are less about fashion than about signalling that you understand where you are. In most cities globally, everyday wear is neat casual, and the reliable observation is that many cultures dress somewhat more put-together in public than the very casual end of Western norms; athletic wear as streetwear, visible sloppiness, or beachwear away from the beach reads poorly in much of Europe, Asia, and Latin America. Conservative regions across the Middle East, South Asia, and parts of Africa add coverage expectations, roughly shoulders and knees for everyone, with women's dress observed more closely; cosmopolitan capitals are usually looser than the countryside of the same nation.
Stricter rules attach to specific places rather than the street: religious sites almost universally require modest coverage, often head coverings or shoes off depending on the faith; government offices, courts, and banks expect tidy, conservative dress and sometimes refuse entry otherwise; upscale restaurants and business settings carry their own formality; and weddings, funerals, and ceremonies follow local colour and formality codes worth asking about, since colours like white, black, or red carry opposite meanings across cultures.
The practical kit: versatile modest layers, one smart outfit, and a scarf or sarong for site visits. Then calibrate to what locals your age wear, and when in doubt, dress up, never down.