Need flexibility with dates? Introducing django-fuzzy-dates
Recently updated on
Hildegard of Bingen was born in 1098. My summer in Europe began in June 2007. For dates like these, we don’t need a year, a month, and a day. Sometimes just a year and a month, or even just a year by itself is enough. More precise data might be unavailable, unnecessary or misleading.
If you want to represent intentionally imprecise dates in your Django model, the traditional Django DateField might not serve your needs, as its values must specify a year, a month, and a day. For special cases like the ones described above, we are pleased to present our newest open sourced project - django-fuzzy-dates. Its “FuzzyDateField” can represent a date as a year and a month or just as a year by itself. Of course it can handle “non-fuzzy” dates too.
It offers you the flexibility to format your fuzzy dates in various ways, and several other nifty features. To find out more, check out the README in the public GtHub repository at https://github.com/ImaginaryLandscape/django-fuzzy-dates
Enjoy!