Can you be 35 years old and join the military?

I want to know how old is to old to join the military