C1: =B1-A1
Where C1 is where you wan the difference to show, A1 is the earlier date,
and B1 is the later date. If you don't know necessarily which one will be
later, you could do the following:
C1: =ABS(A1-B1)
Ensure, in either case, cell C1 is formatted as General or a number.