-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using groupBy with date part #204
Comments
What's your data structure? |
Messages = [ It's something like that... 'Sent' is timespam Thanks |
Well, I had a problem with groupBy with dates because my dates were formatted as timestamp, so I changed the format to MM/dd/yyyy before render the view, then it worked. You can format them both server-side as client-side. |
To resolve that I use map function to before groupBy, so, on map function I create a new formatted property (MM/dd/yyyy).
|
i'm using the same solution but I assume it has performance issues with big lists :( |
Above solution proposed by @rafaelss95 can work if I want to group by date. But I have a requirement to group by Date as well as time (complete timestamp), and in such cases groupBy is misbehaving. It would be great if someone would investigate the issue. |
@karandesai28 try to change the date format to something (for example) like mysql datetime: |
@codekraft-studio Thanks for reply. Just to confirm, I mentioned about groupBy, not orderBy. Will it work for groupBy? I'll try from my end though. |
@karandesai28 yea sorry I answered in early morning and I was still sleepy, I intended groupBy obviously :) |
Well I tried in groupBy, but it didn't work |
Hi.. I cannot find a way to group by my array with a date part (dd/MM/yyyy).
I have to group by day/month/year of a date property, how can I do it?
thanks!
The text was updated successfully, but these errors were encountered: