Last date of month to show in different format

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 …
image

I want date like 31-8-2020…

How can i get that?? can someone help

give a try on lastDateOfCurrentMonth.ToString(“dd-M-yyyy”)

Hi @Latif,

Please refer below workflow:
lastdate_Month.xaml (6.9 KB)

Thanks,
Neelima.

Thanks for the help… it worked :pray:

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