public static string MyEncode(object o)
{
    if (o == null || o.ToString() == "null") return null;
    if (o != null && (o.GetType() == typeof(String) || o.GetType() == typeof(string)))
    {
        return o.ToString();
    }
    IsoDateTimeConverter dt = new IsoDateTimeConverter();
    dt.DateTimeFormat ="yyyy'-'MM'-'dd'T'HH':'mm':'ss";
    return JsonConvert.SerializeObject(o, dt);
}

 

相关文章:

  • 2022-01-16
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-11-06
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2020-07-18
  • 2021-07-06
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案