title: CoSign API: Setting Date Format Using DSS Web Service
body: <p>I'm running into a problem when trying to specify the date format for a signature field using the DSS web service. Here is my code:</p>
  
  <pre><code>Req = new RequestBaseType();
  Req.OptionalInputs = new RequestBaseTypeOptionalInputs();
  Req.OptionalInputs.SAPISigFieldSettings = new SAPISigFieldSettingsType();
  TimeDateFormatType tf = new TimeDateFormatType();
  tf.DateFormat = "dd MMM yyyy";
  Req.OptionalInputs.SAPISigFieldSettings.TimeFormat = tf;
  </code></pre>
  
  <p>I attempt to sign the document as follows:</p>
  
  <pre><code>DSS service = new DSS();
  service.Url = "https://cosign:8080/sapiws/dss.asmx";
  SignRequest sreq = new SignRequest();
  sreq.InputDocuments = Req.InputDocuments;
  sreq.OptionalInputs = Req.OptionalInputs;
  Resp = service.DssSign(sreq);
  </code></pre>
  
  <p>And I get the following response from the ResponseBaseType object:</p>
  
  <p><code>urn:oasis:names:tc:dss:1.0:resultmajor:Insufficient Information Error parsing OptionalInput SAPISigFieldSettings</code></p>
  
  <p>If I don't specify the date format, it works OK. Any ideas?</p>