How do I subtract dates and times?

How do I subtract dates and times?

I have two dates - one is a start date and time, the other is an end date and time.

I want to subtract one from the other so that I get the time difference between the two.

I cannot work out how to do that...!

Any ideas?