update the database field automatically after calculating the date?

The DateTime class in C# has a method called AddMonths.

var thisDayNextMonth = currentDate.AddMonths(1);

Please do not homebrew a weird solution. Standard problems have standard solutions and in C# they are really easy to find and not obscure at all.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top