I am creating a visual web part to display the calendar events in the form of an events list with custom css. The web part will be on the home page of my site. Here is what I have right now and it is bound to a label control within an item template of a repeater:
<asp:Label ID="Date" runat="server" CssClass="dateStyle" Text='<%# Eval ("EventDate") %>' > </asp:Label>
<br />
A few questions:
- How could I possibly reformat the EventDate (format ex:"3/23/2012 12:00:00AM") to say March 23 at 12:00AM?
- Is there a way for me to create the title (that I pull from the event list) as a link to edit the event? Thanks