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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

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

List sort by month


Go to End


768 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!