The user inquires if they can leave Thailand on the day their visa expires or if it expires at midnight the day before. Commenters clarify that the important date is the entry stamp in the passport, which indicates you must exit by midnight of the expiration date shown.
You must cross through passport control by midnight on the date shown on your entry stamp. The date on your visa doesn't matter, it's the date on the stamp in your passport that matters.
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.