Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date format in repeater 1

Status
Not open for further replies.

mattbold

Programmer
Oct 5, 2001
45
0
0
GB
Hello,

I have a repeater that shows as one of its fields a date, but it shows it as (for example) "13/04/2003 00:00:00", how do i go about displaying it as "13 April 2003"?

Any help would be greatly appreciated :)

- matt
 
Hi Mattbold,

In your repeater you can use this type of format:

<asp:label id=&quot;LabelOrdDate&quot; text='<%# DataBinder.Eval(Container.DataItem, &quot;Order_Date&quot;, &quot;{0:D}&quot;)%>' runat=&quot;server&quot; />

Hope that helps!



i love chocolate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top