Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying short date format in GridView
Message
From
06/10/2010 15:22:17
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
06/10/2010 15:03:08
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01484208
Message ID:
01484215
Views:
22
>Hi,
>
>I am trying to display just the date part of a datetime field in a gridview, but the time is always displayed. Can anybody see anything wrong with this?
>
>
<ItemTemplate>
>     <mm:mmLabel ID="lblDOB" runat="server" DisplayFormat="{0:d}" CssClass="date" Text='< %# Bind("DateOfBirth") % >'></mm:mmLabel>
></ItemTemplate>
Frank, see if there is an HtmlEncode property for the column. You will need to set that to false.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform