title: passing datetime parameters in C#
body: <p>I have the following code with is part of an overall code to Add customer details into a Windows Form and transfer the data to SQL. I am only new to coding and I am not sure how to fix the following error:</p>
  
  <pre><code>  Customers customer = new Customers(GlobalVariables.selectedCustomerID,
                             lbCategoryID.Item[cbCategory.SelectedIndex].ToString(),
                             txtFirstName.Text, txtLastName.Text, cbGender.Text,
                             txtAddress.Text,
                             txtSuburb.Text, cbState.Text,
                             int.Parse(txtPostcode.Text).ToString()), dtpBirthdate.Value);
  </code></pre>
  
  <p>I get a red line under "Value" - states "; expected"</p>
  
  <p>and also Customers (after new) - states "There is no argument given that corresponds to the required formal parameter "birthdate" of Customers.Customers (int, int, string, string, string, string, string, string, int, DateTime)'."</p>
  
  <p>I am not sure what I need to do to fix this issue. The Birthdate is in DateTime format within a Customer Class. </p>
  
  <p>Any help would be appreciated.</p>