User116907111 posted
Hello,
I made a partial class for my tables to format the values correctly. There is a Problem with DateTime format. I want only the Date without the Time.
The fields show that: 01.01.1999 00:00:00 / I want: 01.01.1999
This is my code:
[
DisplayName("Begin")]
[DisplayFormat(DataFormatString =
"{0:dd.MM.yyyy}")]
public
object JobBegin {
get;
set; }
Could someone explain what is wrong`? The DisplayName works!