title: BasicNameValuePair (String, java.lang.String) in BasicNameValuePair cannot be applied
body: <p>I am currently using this code to store two strings(newCategory &amp; reportDate) in a database:</p>
  
  <pre><code>String newCategory = spinnerFood.getSelectedItem().toString();
  
              // Create an instance of SimpleDateFormat used for formatting
              // the string representation of date (month/day/year)
              DateFormat df = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
              // Get the date today using Calendar object.
              Date today = Calendar.getInstance().getTime();
              // Using DateFormat format method we can create a string
              // representation of a date with the defined format.
              String reportDate = df.format(today);
  
              // Preparing post params
              List&lt;NameValuePair&gt; params = new ArrayList&lt;NameValuePair&gt;();
              params.add(new BasicNameValuePair("name", newCategory));
              params.add(new BasicNameValuePair("dtime", reportDate));
  
              ServiceHandler serviceClient = new ServiceHandler();
  
              String json = serviceClient.makeServiceCall(URL_NEW_CATEGORY,
                      ServiceHandler.POST, params);
  </code></pre>
  
  <p>This stores the name string successfully. But the date and time data in the database contains the value:</p>
  
  <p><code>0000-00-00 00:00:00</code></p>
  
  <p>If I change the date string to a date/time format like so:</p>
  
  <pre><code>df.format(today);
  
          params.add(new BasicNameValuePair("dtime", today));
  </code></pre>
  
  <p>I get the error: </p>
  
  <p>BasicNameValuePair      (String, java.lang.String) in BasicNameValuePair cannot be applied </p>
  
  <p>to (String, java.util.date)</p>
  
  <p>Could someone inform me how I could store a date and time value to a database?</p>