How to calculate the difference between two dates?

How to calculate the difference between two dates?

e.g;

  1. Date:
    03.05.2022 23:00

  2. Date:
    05.05.2022 10:00

conclusion:
1 day 11 hours

why can’t it parse the first date?

Why are you doing it wrong!

image
This is the right way to use the extension.