This project is read-only.

Custom Date/Time Stamp Results in Error

Sep 20, 2010 at 8:44 PM
Edited Sep 20, 2010 at 8:50 PM

Hello All. I've been working on trying to get a date stamp in the footer of my blog. I want it to return the current date in the Day,Month,Date,Year.  when i implimented my code the page parsed fine until it got to the footer where it reported "Ooops an unexpected error occured". it had no error details. I searched the post history but couldnt find anything directly relating to this issue.


My code:

<%=String.Format("{0) : dddd, MMMM d, yyyy}", DateTime.Now)%>

Does the Blogengine framework not allow for serverside script?

If i end up getting this working  before hand i will gladly post my code for all to use.


Sep 20, 2010 at 9:17 PM

solved my issue code below


<%=DateTime.Now.ToString("dddd, MMMM d,yyyy")%>