When was the UAE flag adopted?

What do the UAE flag's four colours mean?

What are the rules for displaying the UAE flag?