I’ve got a SharePoint (2010) list with a date field on it.
Now in my custom display form I can go ahead and add the field
<SharePoint:ListItemProperty Property="MyDateField" runat="server" id="ListItemProperty1" />
which results in the following output
21.02.2011 15:44
How can I tell SharePoint to format the Date to
21.02.2011
The only way so far seems to be to create a new calculated column based on that date field and do the formatting within the field definition, but that kind of seems to be the wrong way.
Any help would be much appreciated.
When you create the “Date” column in the list, there is option to select: 1)Date only ; 2)Date and time.
If you select the first option, then in the display form, only the date is shown