How can I find "week" in django's calendar app?

Posted by Malcom.Z on Stack Overflow See other posts from Stack Overflow or by Malcom.Z
Published on 2010-05-06T05:42:27Z Indexed on 2010/05/06 5:48 UTC
Read the original article Hit count: 164

Filed under:
|
|
|

MyCalendar.py Code:

from django import template
imort calendar
import datetime

date = datetime.date.today()
week = ???
...

The question is that I want to get the week which contains today's date. How can I do?

Thanks for help!

Ver: Django-1.0 Python-2.6.4

© Stack Overflow or respective owner

Related posts about django

Related posts about python