I'm using JavaScript. I have an array that contains data in this format:
[
{"USER_NAME":"User1","LAST_SUCCESSFUL_CONNECT":"1373978337642"},
{"USER_NAME":"User2","LAST_SUCCESSFUL_CONNECT":"1374515704026"},
{"USER_NAME":"User3","LAST_SUCCESSFUL_CONNECT":"1374749782479"}
]
(the numbers above represent UTC date/time in milliseconds.
I would like to group (count) the data by month. Something like this:
[
{"Month":"January, 2014","User_Count": 2},
{"Month":"February, 2014","User_Count": 1},
]
I could use jQuery if it simplifies matters.
$count
option (I'm not sure this would give me what I want). However, I already have the raw data in the client from a previous query, and I would like to save the round-trip. – Paxwax