This works !
>>> from datetime import date
>>> today=date(2011,10,11)
But how do I do this ?
>>> day =  '2011/10/11'
>>> today=date(day.split('/'))
note:
>>> day.split('/') 
['2011', '10', '11']
I have seen this link.But i need integers for the date() not a list
 
     
     
     
     
     
     
    