Generally you should apply within 3 months of your intended departure date.
Some consular offices are busier than others and some people get theirs approved in under a week while others wait over a month so it’s better to give yourself more time rather than less.
There’s no “activation period” and the minute it is issued the 5 year timer is going.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.