This question is locked. New answers and comments are not allowed.
I need to format DateTime values with the current culture.
So i can't write something like this:
columns.Add(o => o.OrderDate).Format("{0:MM/dd/yyyy}")
I 've tried:
columns.Add(o => o.OrderDate.ToShortDateString())
but it display a string empty.
I've also tried:
columns.Add(o => o.OrderDate.ToString("d"))
Can you help me?
Thanks
So i can't write something like this:
columns.Add(o => o.OrderDate).Format("{0:MM/dd/yyyy}")
I 've tried:
columns.Add(o => o.OrderDate.ToShortDateString())
but it display a string empty.
I've also tried:
columns.Add(o => o.OrderDate.ToString("d"))
Can you help me?
Thanks