hi my name is vishal.
i am on a project ie: converting a project of vb6 with ms-access to c#(framework 4.5) with sql server 2008.
dtDOB.MaxDate = dtDOB.Value; where as in vb6 it is dtDOB.MaxDate = DateAdd("yyyy", -10, Now) where dtDOB is name of datepicker.how do i use DateAdd function in c# as i easily used in vb6. how i convert the above line in vb6 to c#.