Date_time

how the find the last day of the month.?

DateTime.DaysInMonth(2017, 08); //return 31

Datetime.DaysInMonth(Year, Month); //syntax

you can also use this for current year and current month like below :slight_smile:

DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month)

Regards…!!
Aksh

5 Likes

thanks akash

It is Akshay :slight_smile: or Aksh :slight_smile: