Yes. I believe that it is necessary. Else the students will start coming to school in hip hop styles, which can create a lot of nuisance and distraction. We need strict regulations not only in dress code, but also in language and manners.
Strict on dress code and regulation in school makes the student coning to school formal and desciplined. Likes your idea on school uniform. And also help not to discrimenate others on wearing unifrom.