Skip to content

Is there a way to return monthname when you use group_by_month? #15

Description

@acp15ak

I am using:
PurchaseHistory.group_by_month(:purchase_date,"sum","quantity*price")
It returns the following output:
"2015-08-01 00:00:00 UTC"=>40.0
Is there a way to get monthname instead of the whole timestamp?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions