Given a travel related situation, and given a specific question about the situation, summarize the question into a title
Q: I'm arriving in Thailand and spending 1 month there, traveling other countries for 1 and a half months and then returning for 2 weeks before catching my flight out from Bangkok. 

Is it true that they will refuse my entry if my outgoing flight isn't within 30 days of arrival?

I haven't booked the flights yet. What is the best way to do this? 

A: 
Can I get into Thailand if my outgoing flight is 3 months later?