This sample uses the DateFormatString setting to control how T:System.DateTime and T:System.DateTimeOffset are serialized.
Sample