ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,199 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
NoOfDays = Convert.ToInt32((ToDate - FromDate).TotalDays) 2022-10-05
2022-10-05
If I enter same date in todate and fromdate than it gives 0 days
but I wants to count it as 1 day , how it can be possible.