You can just create and subtract the date object.
from datetime import date
d0 = date (2008, 8, 18) #dateobject1
d1 = date (2008, 9, 26) #dateobject2
delta = d0 - d1 # Subtract
print delta.days #calculated by date
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
911 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
578 Understanding How to Configure Google API Key
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.