Fetching last date of the Month

tutorial
studio
variable

#1

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.


#2

HI @Haich,

Pass your Year and month

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

Example

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

Regards,
Arivu


How to get the datatable based on the column(integer)
#3

Thanks @arivu96

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