I have selected a bunch of data from my access database which one of the fields is a DateTime field.
I'm trying to show it formated in a GridView but when I try:
dtlJob.DataSource = genericDataSet
dtlJob.Fields(2).DataFormatString = "{0:d}"
dtlJob.DataBind()
I get this error on line 2
Error 2 'DataFormatString' is not a member of 'System.Web.UI.WebControls.DataControlField'.
How do I format my data?
EDIT
This is my DetailsGridView I'm trying t o show off
<asp:DetailsView ID="dtlJob" runat="server" Height="50px" Width="125px">
</asp:DetailsView>
it has nothing but its tags for I'm fetching every data by code from a database. But I want to format the Data Date Field which is appearing like this no more which data it has
