Subtracting two dates July 29, 2023 by Tarik You can use someDateTime.Subtract(otherDateTime), this returns a TimeSpan which has a TotalDays property.