• studentTableAdapter studentTable = new studentTableAdapter();

    string s = txtName.Text;

    string d = txtDate.Text;

    if (d == "")

    {

    d = null;

    int i = studentTable.InsertStudent(txtName.Text, Convert.ToDateTime(d));

    }

    here's my code and i am using typed dataset in my application, without convertto.datetime it gives error that best overloaded function for insertstudent has some invalid argument(string,System.datetime)