How to get all days of current month?

I want to get all days of current month starting from 1st date.

Hi @sarvesh.b ,

Could you give this a try?
image

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

image

Enumerable.Range(1,DateTime.DaysInMonth(Today.Year,Today.Month)).select(Function(i)New Datetime(Today.Year,Today.Month,i)).ToList()

Kind Regards,
Ashwin A.K

1 Like

Thank You for your reply. I need days on this dates.

Hi @sarvesh.b ,

If you are looking for a collection of days, then is this what you meant?
image

Enumerable.Range(1,DateTime.DaysInMonth(Today.Year,Today.Month)).select(Function(i)New Datetime(Today.Year,Today.Month,i).DayOfWeek ).ToList()

Kind Regards,
Ashwin A.K

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.