可以在sturap里面 修改配置日期返回的格式
// services.AddMvc(); services.AddMvc().AddJsonOptions(options => { options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm:ss"; });
Powered by: 博客园 Copyright © 2024 刹那的菜鸟 Powered by .NET 9.0 on Kubernetes