Last date of month to show in different format

Facconly

New member
Date time is not working… can someone help…

LastDateOfCurrentMonth = New DateTime(now.Year, now.Month, DateTime.DaysInMonth(now.Year, now.Month))
and in messagebox I do
LastDateOfCurrentMonth.ToShortDateString
and it show me date like …

1.png

I want date like 31-8-2020…

How can i get that?? can someone help
 
Top