Hi, i have two datetimepickers, Datetimpicker2 is exactlty 3months added to datetimpicker1,but i am geing errors in seting Max and min value, can anyone Please help
Datetimepicker2.MinDate =
Convert.ToDateTime(Datetimepicker1.Value);
Datetimepicker2.MaxDate =
Convert.ToDateTime(Datetimepicker2.MinDate.AddMonths(3).ToString("dd/MMM/yyyy"));