Date_time

code

#1

how the find the last day of the month.?


#2

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


#3

thanks akash


#4

It is Akshay :slight_smile: or Aksh :slight_smile: