Fetching last date of the Month

Main.xaml (10.6 KB)

I was unable to find posts that could help me find the last date of the month, however, I managed to implement it. I’m sure there must be better ways to what I have implemented but maybe it will help someone in some way and if anybody has better ideas do share.

1 Like

HI @Haich,

Pass your Year and month

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

Example

strlastDay=DateTime.DaysInMonth(2018, 3).ToString()

Regards,
Arivu

2 Likes

Thanks @arivu96

I’ve just tried your way, definitely a better way :+1: Appreciate your input :slight_smile:

1 Like