Thus, William wears a military uniform on special occasions, such ashis wedding to Kate Middletonin 2011.
Meanwhile, he wore a Blues and Royals uniform to his brotherPrince Harry’s nuptialsin 2018 (viaInsider).
There are other instances that the second-in-line-to-the-throne royal wears a uniform (viaHarper’s Bazaar).

One such time was when he graduated from Sandhurst Military Academy in 2006 (viaExpress).
Remember, at that point, William was dating his future wife (viaTown & Country).
