Jump to:

7938 Posts in 1540 Topics by 945 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » get data sorted and restricted by date

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 511 Views
  • Wocker
    Avatar
    Community Member
    6 Posts

    get data sorted and restricted by date Link to this post

    I want to retrieve data and restrict the number of results based on the stored date.
    The dates are all in the past. For example 11-11-1980, 25-11-1974, 14-12-1999, 30-4-2000

    Now I want to select all content that has date with a day and month that is within 14 days of today. So in essence I want to ignore the stored year. But still it has work when we get to the end of the year, it has to continue to check in January.

    I hope my question is clear, and someone can help me with this. I also tried to post this as http://www.silverstripe.org/dataobjectmanager-module-forum/show/14728 (so sorry for the double post but maybe rephrasing this question helps)

    511 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.