More in this section
Forums / Designing & Styling / EventDates in Widget Template

EventDates in Widget Template

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.
2 posts, 0 answered
  1. Gaston County
    Gaston County avatar
    38 posts
    23 Feb 2012
    24 Feb 2011
    Link to this post
    Hi all,

    I'm sure this is easy(ish) but I'm not seeing it. I'm working on the full item template for events, and there is a FieldListView to display the date range of an event. I want to change it to a more verbose format, but by magic or some such, this particular FieldListView doesn't have any properties or text accessed.

    The current format is "1 - 1 Mar, 2011", which doesn't include the time part and is important to my users. How would one achieve:

    1. "March 1, 2011 6:00 PM - March 1, 2011 9:00 PM"
    2. "March 1, 2011 6:00 PM" (if no end date is available)

    And for truly pie in the sky:

    3. "March 1, 2011 6:00 PM - 9:00 PM" (leave out the date part of the end date if it matches the begin date)
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    25 Feb 2011
    Link to this post
    Hi Zak,

    The control has a public property Format that you can use. Example : {EventStart.ToLocal():dd MMM, yyyy}

    All the best,
    Ivan Dimitrov
    the Telerik team
2 posts, 0 answered