- The FieldValue control in the SharePoint.WebControls namespace is nice to use for displaying values from a SPListItem without adding a lot of “unnecessary” code.
For example, this will get you a display of the created date of an item:
What if you now want to format the date, how do you do that?
No rocket science , but you can (either in your page or perhaps usercontrol) add some declarative code to format that date according to the following pattern:
<%= DateTime.Parse(Microsoft.SharePoint.SPContext.Current.Item["Created"].ToString()).ToString("d MMM yyyy") %>