Displaying dates

  • Thread starter Thread starter Chumley the Walrus
  • Start date Start date
C

Chumley the Walrus

I'm trying to display a date from my sql database, but when I use a
repeater control as follows:

<ASP:Repeater id="thedata" runat="server">
<itemtemplate> <%# Container.DataItem("ArticleDate")%>
</itemtemplate></ASP:Repeater>

the date displayed shows 6/24/2004 12:00AM, whereas i dont want to
show the 12:00AM. Using <%#
Container.DataItem("ArticleDate").ToString("F")%> gives me a 'Public
Overridable Function ToString() As String' error


????
Chumley
 
Hi Chumley,

The ones who works with this are mostly in the newsgroup

microsoft.public.dotnet.framework.aspnet

You likely get an answer faster there.

Cor
 
Back
Top