Here's an attempt to reproduce your reported problem:
from datetime import datetime
finspltsix='2014-05-11'
finspltseven='2014-09-11'
datea = datetime.strptime(finspltsix, "%Y-%m-%d")
dateb = datetime.strptime(finspltseven, "%Y-%m-%d")
myresult9 = datea - dateb
print myresult9.days
This prints -123
, which is perfectly correct: datea
is indeed 123 days before dateb
(check a calendar if you don't think that's right!-).
So your incredibly-fuzzy assertion that "it does not work" just cannot be substantiated -- it works perfectly fine.
Please edit your Q to show your complete code (as simplified as possible!), what you expect to see, what you actually see -- IOW, please respect the stack overflow standards you explicitly agreed to as a precondition of posting here. Once you do respect this site's standards as you have agreed to do, we'll all be better placed to help!
For example, if, as per your comment, you omitted the quotes and just had e.g
finspltsix=2014-05-11
this would be computing finspltsix
as the number 1998 via two subtractions, upon which of course the strptime
call would raise an exception. We can't possibly tell if that's the case, as you callously, wantonly, and deliberately chose to hide exactly what problem you saw (exception traceback, strange result, whatever!), presumably in order to make it impossible for us to help you (if that was indeed your goal, you succeeded pretty well so far -- but, what a strange goal that would be!-).