How to find the last date in current month ?
Example
if today is 11 March 2020
I want output 31 March 2020
Help me please.
How to find the last date in current month ?
Example
if today is 11 March 2020
I want output 31 March 2020
Help me please.
DateTimeVar = New DateTime(now.Year, now.Month, DateTime.DaysInMonth(now.Year, now.Month))
try this
@fairymemay
thank you
You can also use this
DateTime.DaysInMonth(Year, Month).ToString() to find the last date of the month
Example :strDay=DateTime.DaysInMonth(2020, 3).ToString()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.