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

Forums / Developing with Sitefinity / Displaying time with EventView control

Displaying time with EventView control

6 posts, 0 answered
  1. anand
    anand avatar
    59 posts
    Registered:
    11 Jun 2008
    09 Dec 2008
    Link to this post
    I have following 2 issues with EventView control

    1) I am not seeing any option for displaying time with Event date in EventView and control, please help

    2) how can I make sorting in EvnetView control by EventStart Date?(Currently it is by publication date)
    I have tried it by properties-->advanced properties-->filters-->SortExpression = Start_Date Desc
    but it's not working, please help
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    09 Dec 2008
    Link to this post
    I believe the default meta field for starting date is Event_Start, so try "Event_Start DESC" and that should sort your events.

    regarding displaying time you can use a format string in the advanced properties under appearance, using a format string like MMMM dd, yyyy hh:mm tt

    where hh:mm tt is hours:minutes am/pm.

    i hope this was helpful!
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    10 Dec 2008
    Link to this post
    Hi anand,

    1.There are properties in controls settings. Find the attached screenshot.

    2. Try using the following Event_Start DESC instead of Start_Date (there is no property with this name by default)

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. anand
    anand avatar
    59 posts
    Registered:
    11 Jun 2008
    10 Dec 2008
    Link to this post
    I have added format string in Appereance in EventView control's Advanced properties but still I am not getting time in my Start Date and EndDate.

    I above attached Image I am not seeing any format date with Time. please help
  5. anand
    anand avatar
    59 posts
    Registered:
    11 Jun 2008
    10 Dec 2008
    Link to this post
    Actually When I added any EventView control first time it will display time but if I choose any format we can not switch to time format mode, please suggest if any solution for this
  6. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    12 Dec 2008
    Link to this post
    Hi anand,

    The EventsView control was not designed to handle date and time. So when you apply the date format it erases the time. What you could do is to add custom meta field with DateTime type and display it.

    Kind regards,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
6 posts, 0 answered