Dear Shruti,
Wearing a uniform during working hours is subject to the following:
(1) There exists a uniform policy, and it is, inter alia, mentioned that 'wearing a uniform is mandatory' on all working days during working hours.
(2) The uniform is provided by the company free of charge with a washing allowance.
(3) Penalty clause in case of violation of the Uniform Policy.
Normally, the uniform policy is strictly followed in companies where blue-collar employees are engaged to create a feeling of similarity and belongingness, and people follow the policy without any hassle. However, white-collar employees, at times, deviate from the policy, and the Personnel/HR department issues verbal/written warnings and advises the concerned individuals to adhere to the policy. If the employees are adequately provided with a uniform by the company along with a washing allowance, I don't see any reason not to wear the same. In case of any deviation by anybody on any occasion, it will not be considered as misconduct. However, this varies from organization to organization according to its policy.
In the absence of any policy/free uniform, it is not mandatory for the employee to wear a uniform.
Thanks,