News Module Date Code Question
Does anyone know a way to combine:
<sf:FieldListView ID="PostDate" runat="server" Format=" | PublicationDate.ToLocal():MMM dd, yyyy" />
with this:
<asp:Literal runat="server" Text='<%# Eval("ActualPubDate")%>'/>
So this part:
.ToLocal():MMM dd, yyyy
works in the:
ActualPubDate
Thank you,
Lou
Hi,
You can call String.Format method inside the binding tags and format the returned value the way you like. Here's an article that has some sample code, that you can use:
http://www.velocityreviews.com/forums/t83939-format-a-date-from-a-databinder-eval.html