Quantcast
Viewing latest article 3
Browse Latest Browse All 46

Answer by Shah Zaiƞ for Difference in months between two dates

You can use Noda Time https://nodatime.org/

LocalDate start = new LocalDate(2010, 1, 5);LocalDate end = new LocalDate(2012, 6, 1);Period period = Period.Between(start, end, PeriodUnits.Months);Console.WriteLine(period.Months);

Viewing latest article 3
Browse Latest Browse All 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>