public static JsonSerializerSettings ConfigureIsoDateTimeConverter(this JsonSerializerSettings settings,
                                                                    Action <GraphiteIsoDateTimeConverter> configure = null)
 {
     settings.RemoveConverters <IsoDateTimeConverter>();
     configure?.Invoke(settings.GetOrAddConverter <GraphiteIsoDateTimeConverter>());
     return(settings);
 }
 public static JsonSerializerSettings WriteMicrosoftJsonDateTime(this JsonSerializerSettings settings,
                                                                 Action <KindDateTimeConverter> configure = null)
 {
     settings.DateFormatHandling = DateFormatHandling.MicrosoftDateFormat;
     if (configure != null)
     {
         settings.RemoveConverters <KindDateTimeConverter>();
         configure(settings.GetOrAddConverter <KindDateTimeConverter>());
     }
     return(settings);
 }