Calcuate How Many Days There Are Between Two Dates C# Code Example


Example: c# calculate difference between two dates in days


(EndDate - StartDate).TotalDays //double
(EndDate.Date - StartDate.Date).Days //int

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable