title: WCF DataMember DateTime Serializing Format
body: <p>I have a working WCF service which used JSON as its RequestFormat and ResponseFormat.</p>
  
  <pre><code>[ServiceContract]     
  public interface IServiceJSON 
  { 
  
      [OperationContract]   
      [WebInvoke(Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] 
      MyClassA echo(MyClassA oMyObject); 
  
  } 
  
  [DataContract] 
  public class MyClassA 
  { 
      [DataMember] 
      public string message; 
  
      [DataMember] 
      public List&lt;MyClassB&gt; myList; 
  
      public MyClassA() 
      { 
          myList = new List&lt;MyClassB&gt;(); 
      } 
  } 
  
  [DataContract] 
  public class MyClassB 
  { 
      [DataMember] 
      public int myInt; 
  
      [DataMember] 
      public double myDouble; 
  
      [DataMember] 
      public bool myBool; 
  
      [DataMember] 
      public DateTime myDateTime; 
  
  }
  </code></pre>
  
  <p>The myDateTime property of class MyClassB is of type DateTime. This is being serialized to the following format: "myDateTime":"/Date(1329919837509+0100)/"</p>
  
  <p>The client I need to communicate with can not deal with this format. It requires it to be a more conventional format like for example: yyyy-MM-dd hh:mm:ss</p>
  
  <p>Is it somehow possible to add this to the DataMember attribute? Like so:</p>
  
  <pre><code>[DataMember format = “yyyy-MM-dd hh:mm:ss”] 
  public DateTime myDateTime;
  </code></pre>
  
  <p>Thanks in advance!</p>