Take a look at code below:
DateTime ArrivalDate = new DateTime(2019,11,7);
DateTime SortedDate = new DateTime(2019,10,18);
int daysDiff = (ArrivalDate - SortedDate).Days;
For further details, please see:
TimeSpan Struct (System) | Microsoft Docs[
^]