Collin Grady wrote:

>This is not a backend issue at all - the problem is you're assigning a
>string to the DateField, which is not what it needs.
>  
>
Hi Keith and Collin,

This is what happens when you try to code at 1:30am :-)

Yes I have it working ok

inputdata is a split line read from a file, with the date in a field 
position specified by MY_DATE

eg:

mydate = datetime.date(*time.strptime(inputdata[MY_DATE], '%Y-%m-%d')[:3])

I'll take some stronger tea next time !!

/Frank

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to