asp.net core webapi 日期返回中出现字母T

2021-08-16 21:58

阅读:540

标签:cal   art   collect   json序列化   frame   tin   .net   asp   href   全局配置 在Startup文件中修改 // This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { // Add framework services. services.AddMvc() //全局配置Json序列化处理 .AddJsonOptions(options => { //设置时间格式 options.SerializerSettings.DateFormatString = "yyyy-MM-dd"; } ); }   参考链接:http://www.cnblogs.com/tianma3798/p/6918548.htmlasp.net core webapi 日期返回中出现字母T标签:cal   art   collect   json序列化   frame   tin   .net   asp   href   原文地址:http://www.cnblogs.com/zinan/p/7491175.html


评论


亲,登录后才可以留言!