Jon Combe logo

Django Thai Date: output Thai years, not Gregorian ones

February 20196 years, 6 months ago

This teeny-tiny package is a drop-in replacement for Django'sdate template tag. The only difference is that it outputs Thai years, not Gregorian calendar ones.

Thai years? It is the year 2568 here in Thailand. We're in the future!

INPUT
{% load thaidate %}

{{ value|date:"D d M Y" }}
{{ value|thaidate:"D d M Y" }}
OUTPUT
พ. 27 ส.ค. 2025
พ. 27 ส.ค. 2568

Thanks for reading. You can find installation and usage docs in the GitHub repo. The package is available on PyPI. Happy coding!