To subtract two dates in Excel, you can use the "MIN" function. The "MIN" function will return the minimum value between two dates. To subtract two dates, you can use the following formula:
=MIN(B2-A2)
In this formula, B2 is the date that you want to subtract from A2.