If (value = 2) Then Dim ddate As Date'DueDate ddate = Sdate.AddMonths(1.0)'add one month but select the day of the month to insert
DateTime date = DateTime.Now; date = date.AddMonths(1); // set our next date to be the first of the next month date = date.AddDays((date.Day - 1) * -1); string dateText = date.ToShortDateString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)