how to sum array values by monthly basis in react

[

    {
      "id": 200,
      "date_created": "2021-01-14T17:15:55",
      "sale": "2500.00",
    },
    {
      "id": 201,
      "date_created": "2021-01-15T15:10:30",
      "sale": "2000.00",
    },
    {
      "id": 202,
      "date_created": "2021-02-4T11:14:10",
      "sale": "4000.00",
    }
]

i am unable to sum it by monthly basis in react js or next js.

can someone guide me how can I do it in react.



Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept