On Fri, Apr 27, 2012 at 6:46 AM, Gopi Kirupanithi <kgopia...@gmail.com> wrote:
> Actually I am using datetime object for comparing two date inputs.
>
> if datetime(fromdtpart[2],fromdtpart[1],fromdtpart[0]) <
> datetime(todtpart[2], todtpart[1], todtpart[0]):
>
> while execute the above line, I got the " 'module' object is not
> callable " error.
>
>
> Anybody can explain why this error occur..
>

The datetime class lives inside the datetime module. You must have
"import datetime" in that code, perhaps as well as "from datetime
import datetime".

Cheers

Tom

-- 
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.

Reply via email to