AddNewRow and AddNewRowToTable are not the same. Correct the question please. Also you can not pass a different type unless some kind of function overloading is implemented by you for your function.
You need to pass correct type for the input parameter. Look into function overloading if you want to pass a String and then convert it into DateTime inside the function.
New DateTime(year, month, day)instead of2008/04/14AddNewRow? can you update the question with code?AddNewRowandAddNewRowToTableare not the same. Correct the question please. Also you can not pass a different type unless some kind of function overloading is implemented by you for your function.