In the console when you set what attribute you're grouping by, a date field added to the grouping section during query design will give you the option by what Range you want to group your query. Month\Day\Week\etc...
If you need to do this like Karan said it would be for WebAccess and then you could use something like the below...