WPF ListView DataGrid日期时间类型格式转换 在XAML前端代码中,找到Binding的字段,加上如下属性 {Binding CreateTime,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}