Hello,
How do i get the first day in next month?
I want the format to be like “dd/MM/yyyy”.
Cheers!
Hello,
How do i get the first day in next month?
I want the format to be like “dd/MM/yyyy”.
Cheers!
DateTime.Now.AddMonths(1).ToString(“dd/MM/yyyy”)
Actually this wont give the first day of the next month
probbly this will give us
like today is = “27/08/2019”
so the above expression will give us
“27/09/2019”
so to get the first day of the next month we need to use
we need to mention like this
New DateTime(Now.Year,Now.Addmonths(1).Month,1).ToString(“dd/MM/yyyy”)
this will give us now a value of
“01/09/2019”
Cheers @LarsFeilberg
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.