How to count number of dates between two dates

From 1-20 if we count means it’s 20 days right there will be no time given only date is there