More in this section
Forums / Bugs & Issues / Getting events by date

Getting events by date

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. Kieran
    Kieran avatar
    56 posts
    Registered:
    14 Aug 2008
    09 Mar 2011
    Link to this post
    hi

    I am trying to get all the events that are on between a certain date.

    I am using
    GetEvents(minDate,maxDate, null) 

    This will return the event if the start date is between the two dates.
    What if the start date is outside the range but the end date is between the range.  how can I get this event to be returned.

    Example

    Event
    Start Date : 31/03/2011
    End Date : 02/04/2011

    GetEvents(01/04/2011, 31/04/2011, null)

    This will not return the above event.






    Thanks
    Kieran

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    10 Mar 2011
    Link to this post
    Hello Kieran,

    You can use MetaSearchInfo filter

    http://www.sitefinity.com/help/developer-manual/content-items-get.html#GetContent_by_filter

    Here is a list with the SearchCondition enumerator values that you can use

    http://www.sitefinity.com/help/developer-manual/telerik.cms.engine-telerik.cms.engine.searchcondition.html

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
2 posts, 0 answered