Order records by month

ionesko 29 Aug, 2014
Hello there!

I have a little problem with CC 5. I have a table with few fields and one of them is date, in format 0000-00-00. I populate the table using a form i made with ChronoForms V5. Now, I want to list records, ordered by the month. I'm trying to use MONTH(model.field) to extract the month from date in "Conditions" box, but it's not working.

Can someone please point me in the right directions?

Thank you very much, in advance!
Max_admin 29 Aug, 2014
Answer
1 Likes
Hi ionesko,

The conditions box is matching the WHERE clause, so how do you plan to use it for "Order" ?

Please try this in the "Order" box:
:MONTH(model.field)


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ionesko 29 Aug, 2014
Hello Max,

Thank you very much for your answer. Problem solved!🙂

Best regards!
This topic is locked and no more replies can be posted.