Start by converting your user inputs to the appropriate datatypes:
int months;
if (!int.Parse(txtNoOfMonths.Text, out months))
{
return;
}
DateTime startDate;
if (!DateTime.Parse(txtStartDate.Text, out startDate))
{
return;
}
Then use those values:
DateTime endDate = startDate.AddMonths(months);
txtEndDate.Text = endDate>ToString();
And use the converted values instead of string values to pass directly to SQL.
(And please, don't say "But my database is all NVARCHAR" - because if it is, that needs to be fixed first!)