Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

List sort by month


Go to End


1235 Views

Avatar
Die Medien-Spezialisten

Community Member, 8 Posts

7 August 2011 at 11:41pm

Hi,

I have a function like that:

function GebdatList() {
return DataObject::get("Steckbrief","","Geburtsdatum","","");
}

"Geburtsdatum" is a date-field and with this kind of sort the list is correctly sorted by the year.
Now I would like to sort the "Geburtsdatum" by month. I have done a lot of trials but nothing help me.

Have anybody an idea?

Thanks!