On 25-6-2012 10:42, armagan wrote: > Hi, > > I'm trying to convert to str to datetime. "date object" must be datetime > object. Can you help me? > > def item_pubdate(self, item): # Yayinlanma Tarihi > > if item.delivery_date: > > date = item.delivery_date So, that's a string and you need it to be a date object. Where does the string come from and what does it look like? -- Melvyn Sopacua
-- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.