Remove the time and date of a post in BlogEngine.NET?

Topics: Controls
Jan 6, 2010 at 5:15 PM

Does anyone know if there is a way to disable posting the date and time of when a post in the BlogEngine.Net blog is posted?

I'd like for the applicaion just to say who it was posted by as posed to show who and when the post was possted.

i.e. insted of saying "ABC posted on December 9, 2009 16:40" just to say "Posted by ABC".


Jan 7, 2010 at 3:22 AM
Edited Jan 7, 2010 at 3:22 AM

You can edit the PostView.ascx file in your theme folder (themes\ThemeName).  Depending on which theme you're using, the exact markup will differ.  For example, in the Standard theme that comes with BE, the date in PostView.ascx looks like:

<span><%=Post.DateCreated.ToString("d. MMMM yyyy HH:mm") %></span>

EDIT:  You can just delete the entire date if you don't want it to appear to all.