Dear all,
I would like to change the display format of x.PublicationDate which is of type DateTime in following manner:
From: 2/28/2013 12:00:00 AM
To: 28.02.2013
My current code (using MVC 4): @Html.PropertyFor(x => x.PublicationDate)
Thank you in advance!
Best regards;
Daniel
I'm guessing you get that format because of your applications culture setting.
But you could change the layout for how you wish to render DateTimes. Joel did a good post on the subject.
Dear all,
I would like to change the display format of x.PublicationDate which is of type DateTime in following manner:
From: 2/28/2013 12:00:00 AM
To: 28.02.2013
My current code (using MVC 4): @Html.PropertyFor(x => x.PublicationDate)
Thank you in advance!
Best regards;
Daniel