No no. If it is in this format, then this is not a valid dateTime value with respect to the XML schema.
The best you can do is the following:
[XmlIgnore] public DateTime DoNotSerialize {get;set;} public string ProxyDateTime { get {return DoNotSerialize.ToString("yyyyMMdd");} set {DoNotSerialize = DateTime.Parse(value);} }
John Saunders Jul 13 '09 at 11:04 2009-07-13 11:04
source share