Formatting dates when serialising an object in C# (2.0)

Posted by zoman on Stack Overflow See other posts from Stack Overflow or by zoman
Published on 2010-06-03T10:10:08Z Indexed on 2010/06/03 10:14 UTC
Read the original article Hit count: 170

Filed under:
|
|

Hi,

I'm xml-serializing a object with a large number of properties and I have two properties with DateTime types. I'd like to format the dates for the serialized output. I don't really want to implement the ISerializable interface and overwrite the serialization for every property. Is there any other way to achieve this?

(I'm using C#, .NET 2)

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about datetime