when is the best time to announce

I heard that anytime for your parents and in-laws but to wait till your 12 weeks to tell the rest is this true ?