How to get or concat the month

I want to get the month only of created_at column

.groupBy(‘created_at’) // i want to group using the month only exp. 01 ,02, 03 etc

thank for helping me

Hi and welcome!

Sorry, I’m trying to understand what output you’re looking for here. Your data should be returned based on the date it was added by default. If not for some reason, then you can order by the created_at column.

Once you have that data, you’re looking to present it based on the month? So you only want to show entries created in January 2020 for example. Or you want to have a table with January, followed by a new table for February?

If also looks very similar to this topic if I’m not mistaken…