hello, would anyone know how can i get the last day of the month, of the current month, and be able to put that date in a spreadsheet without losing the dd/MM/yyyy formatting ?
@Guilherme_Silva - Please try as shown below…
StrLastDateCurMonth = new Datetime(now.year,now.AddMonths(1).month,1).AddDays(-1).ToString("dd/MM/yyyy")
Hope this helps…
As an alternate:
Working on June
Failling on July
Thanks to @prasath17 he fixed with:
Thanks for the catch
thank you so much
very good, thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.