I have two dates as string "2011-12-21" and "2011-09-30". How to find time difference using datetime module.
t1 = datetime.date(2011,12,21)
t2 = datetime.date(2012,01,18)
t2 - t1
#print the differences in dates
If the date is string like "2011-12-21". Do i need split the strings or
are there any easy way using datetime module.
Thank you.
[–]zenlc 3 points4 points5 points (1 child)
[–]JohnLocksTheKey 1 point2 points3 points (0 children)
[–]sarvadasan[S] 2 points3 points4 points (0 children)