Date Subtraction

rsutradhar_python rsutradhar_python at yahoo.com
Sat Jun 17 02:20:13 EDT 2006


How to subtract date which is stored in string variable?

Example:

date1="2006-01-10"
date2="2005-12-15"
date = date1 - date2
should give me 25 but problem is that date1 and date2 datatype is 
string which need to be conerted into date fromat which i am not able 
to do so please help me.





 







More information about the Python-list mailing list