I'm currently converting my site from PHP to Django, but as I'm new to Python I'm struggling to get my head around a few thingss.
Sometimes I have incomplete dates in my database (ie I may not know the day or even the month), so currently have three integer fields: date_year, date_month and date_day.
I noticed that MySQL accepted 'partially null' date fields (eg 2004-04-00, 1994-00-00), but Django just treats them as 'completely' null.
I'm only going to want to display these dates in the following formats:
- 16 March 2009(completely known)
- March 2009(unknown day)
- 2009(unknown day and month)
I presume that I'm going to be unable to use proper date fields in MySQL and that I'd have to have a create a faux date in the model then use a custom template filter; would anyone be able to help?