+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / News DateError

News DateError

2 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    02 Oct 2009
    Link to this post
    I entered a news in a catagorie

    It did not show on my news page

    Under module News I get Publication Date NaN NaN, NaN NaN,

    When I edit it has dates

    Using 3.7 SP1 Community Edtion

    Regards Markus
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    02 Oct 2009
    Link to this post
    Hi Markus Berchtold,

    The problem seems to be related the to the date format string. You could try the following

    1.Map the external template NewsItemsList.ascx
    2. Change the following lines from RadGrid_RowDataBound js function.


    from

    if(date) { 
                        html = date._toFormattedString('dd MMM yyyy, hh:mm', Sys.CultureInfo.CurrentCulture); 
                    } 

    to

     if (date && !isNaN(date)) { 
         html = date._toFormattedString('dd MMM yyyy, hh:mm tt', Sys.CultureInfo.CurrentCulture); 
                    }  

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered