My daughter is almost one and not a fan of hats or sunglasses.  The comfortable strap on these with the easy to use velcro has, however, enabled us to keep sunglasses on her for really sunny days.  I definitely recommend these, but know that it will probably be a struggle to keep on infants.