-3

What I want the Image output in my application

In the last date I want to total days

enter image description here

Amit Jesani
  • 157
  • 2
  • 9

1 Answers1

1
int days = DateTime.DaysInMonth(year, month);
Mashhad Saleem
  • 154
  • 2
  • 15
  • I Think you forgot the first part of the question which was to get the number of months between two dates this can be done by ((date1.Year - date2.Year) * 12) + date1.Month - date2.Month – yawnobleix Jun 12 '19 at 08:02
  • Thank you sir, I have created the logic of the same – Amit Jesani Jun 13 '19 at 15:05