Im importing records from a CSV file into a django model. The CSV file is uploaded by the user. The problem I'm facing is with the date field.
The date field expects the date to be in YYYY-MM-DDbut different spreadsheet programs default to different types of formats and I dont want the user to have to change their default format.
So I want to find the best method for django to accept dates that could possibly be in various formats.
What I thought could work is to specify a list of allowed date formats and try and match the string to one of them... thanks
11/07/2011means November 7 in some countries and July 11 in others. You can only try some "best guess".