We are binding an unknown result set to a WPF DataGrid at run time. Some of our columns are going to contain DateTime values and we need to properly format these date time
Format the binding by StringFormat:
StringFormat
I think it's better than writing code behind pieces of code