I have the following code that form part of a larger code to adda customers details to a Windows Form (C#).
![| Customers customer = new Customers (GlobalVariables.selectedCustomerID, lbCategoryID. Items [cbCategory.SelectedIndex].ToString), txtFirstName. Text, txtLastName.Text, cbGender.Text, txtAddress.Text, txtSuburb.Text, cbState.Text, int.Parse(txtPostcode.Text).ToString()), dtpBirthdate;](https://media.cheggcdn.com/media%2Ff0b%2Ff0b9bf08-bc6b-4443-8a83-d7712704acc8%2FphpjoEDd0.png)
The problem that I am having is that the Customer Class has theBirthdate as DateTime and I am not sure how I set the parametersfor the dtpBirthdate to String. The error when hovering over theCustomer Class (above) state:
There is no argument given that corresponds to the requiredformal parameter “birthdate” of Customers.Customers (int, int,string, string, string, string, string, string,
PayPal Gateway not configured
PayPal Gateway not configured