Widget Template: Event StartDate Format
What's the syntax in the widget templates to allow me to format the startdate to the following format
"MMM dd"
I see there's a DateField I can use but keeps throwing an exception on me
<
sitefinity:TextField
runat
=
"server"
DisplayMode
=
"Read"
Value='<%# Eval("EventStart") %>' Format="0:MMM dd" />
Hi Steve,
You can define the format for this field like this:
<
sitefinity:TextField
runat
=
"server"
DisplayMode
=
"Read"
Value='<%# Eval("EventStart", "0:dd MMM")%>' />
<
br
><
strong
>Event Start:</
strong
></
br
>
<
sf:FieldListView
ID
=
"EventStartDate"
runat
=
"server"
Format
=
" PublicationDate.ToLocal(): dd MMM"
/>