7913 Posts in 1355 Topics by 930 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, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 414 Views |
-
get data sorted and restricted by date

9 November 2010 at 10:37am
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-2000Now 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)
| 414 Views | ||
|
Page:
1
|
Go to Top |

