You can wear shorts in Dubai and even skirts, if they are at knee length and not shorter than that. Just be mindful of the fact that there are a lot of families and children there.