Is there a way to override how DataContractJsonSerializer serializes Dates?
Is there a way to change how the DataContractJsonSerializer serializes dates? Currently, it'll convert a date to something like: { "date": "/Date(1260597600000-0600)/" } I would rather have it serialize as just the milliseconds since utc 1970. That way, other languages can easily work with the json data. No, there's no hook in the serializer itself to do that. But you can use some of the serialization callbacks to implement this same behavior. You'd create another data member (of type string), and before the data is serialized, an [OnSerializing] callback would be invoked to copy the value of