The period from November to the end of February is generally the best time to visit Myanmar, when drier and cooler weather prevails.
June to October is the time of rainy season in Myanmar. The weather during this period is not ideal, however, it would be less crowded than the peak season and you could get lower price for flights and accommodations