Skip to main content

Imagine, you need to calculate difference between two dates quickly, but you don't want to split dates in variables and use compare date and compare time advanced commands.

 

Here is the solution how to do this with simple Python script.

All you need is to specify dates and formats.

 

25762iC41A1B54EF4C3DDC.jpg

25763i6378FA8981DB9921.jpg

Script returns difference in days and seconds, so you can convert them to hours or etc.

 

Here is a positive result when dates and formats are correct:

25764iD50B3B9607E412D7.jpg

And negative, when provided date format is wrong:

25765i7024D44AD05B4586.jpg

Do not hesitate to contact me if you have any questions!

Be the first to reply!

Reply