Jon Combe logo

Django Thai Date: output Thai years, not Gregorian ones

February 20195 years, 7 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 here in Thailand. We're in the future!

INPUT
{% load thaidate %}

{{ value|date:"D d M Y" }}
{{ value|thaidate:"D d M Y" }}
OUTPUT
 
 

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