Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Month and day for birthdaylist

9 years 1 month ago - 9 years 1 month ago #270020 by stefan.wulff
Month and day for birthdaylist was created by stefan.wulff
Hi!
I have a customfield named cb_birthday.
I want to create a list, sorted bei month(birthday) and day(birthday).
So I created two query-fields and used the sql-functions month() and day().
It works to show month and day on a tab or in the list, I even can select them for sorting, but it has absolutly no effect, the list is shown in the order of database entries. :S

Thanks for any advice!!
Stefan
Last edit: 9 years 1 month ago by stefan.wulff.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 1 month ago #270027 by nant
Replied by nant on topic Month and day for birthdaylist

stefan.wulff wrote: Hi!
I have a customfield named cb_birthday.
I want to create a list, sorted bei month(birthday) and day(birthday).
So I created two query-fields and used the sql-functions month() and day().
It works to show month and day on a tab or in the list, I even can select them for sorting, but it has absolutly no effect, the list is shown in the order of database entries. :S

Thanks for any advice!!
Stefan


stackoverflow.com/questions/11213161/order-by-birthday-disregarding-year
The following user(s) said Thank You: stefan.wulff

Please Log in or Create an account to join the conversation.

9 years 1 month ago #270052 by stefan.wulff
Replied by stefan.wulff on topic Month and day for birthdaylist
Oh, thanks! Didn't know that I could use SQL-functions in ORDER-part of the SQL-statement :dry: :silly:
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 1 month ago #270055 by nant
Replied by nant on topic Month and day for birthdaylist

stefan.wulff wrote: Oh, thanks! Didn't know that I could use SQL-functions in ORDER-part of the SQL-statement :dry: :silly:


Yup, you can!

For completeness sake of this thread please post back complete solution for others reading.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum