More in this section
Forums / General Discussions / Event date issue

Event date issue

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Stephen
    Stephen avatar
    70 posts
    09 Jun 2009
    15 Nov 2010
    Link to this post
    I created an event for 2011 (e.g. 02/12/2011) and it displays fine in admin area, but I got an error on the frontend. The control I used to display event start date is as following:

    <telerik:datetimeliteral runat="server" id="Event_Start" dateformatstring="d"></telerik:datetimeliteral>

    The error message is
    Server Error in '/' Application.

    String was not recognized as a valid DateTime because the day of week was incorrect.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [FormatException: String was not recognized as a valid DateTime because the day of week was incorrect.]
    System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2838082
    Telerik.Cms.Web.UI.DateTimeLiteral.set_Text(String value) +88
    Telerik.Cms.Engine.WebControls.Design.Settings.TextSettingService.ApplySettings(ContentView sender, BaseSettingValue settingValue, Control container) +355
    Telerik.Cms.Engine.WebControls.ContentView.ApplyModeSettings(List`1 settings, Control container) +142
    Telerik.Cms.Engine.WebControls.ContentView.repeater_ItemDataBound(Object sender, RepeaterItemEventArgs e) +432
    System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
    System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
    System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
    System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
    System.Web.UI.WebControls.Repeater.DataBind() +75
    Telerik.Cms.Engine.WebControls.ContentView.CreateChildControls() +4852
    Telerik.Events.WebControls.EventsView.CreateChildControls() +140
    System.Web.UI.Control.EnsureChildControls() +87
    System.Web.UI.Control.PreRenderRecursiveInternal() +44
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Control.PreRenderRecursiveInternal() +171
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    15 Nov 2010
    Link to this post
    Hi Stephen,

    Please take a look at this post.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Scott Rozman
    Scott Rozman avatar
    93 posts
    10 Oct 2012
    17 Dec 2010
    Link to this post
    Hi Stephen, not sure if you are still following this thread, but I was curious as to how your problem was resolved and whether this was a problem during new development or something that just showed up on the site.
    I've had a site online since last winter using a date format that I had to add to show as Thursday, Dec 16 and just today that page was throwing an error when it had not in the past. I'm not sure if someone added a particular event today or what triggered the failure.
    I've temporarily changed the date format to another one available in the drop-down and it is working fine, but other news and events controls (showing different categories) on that same page, which should be using the same code are still working fine.
    Mine also shows up fine in the drop-down as "Thursday, Dec 16".
    I won't be in my office until Monday to look at the code, but I was really surprised that I would have had something wrong and been able to run it for 10 months with no issues.
Register for webinar
3 posts, 0 answered