How to display data for the last week from the API?
-
Application for the exchange rate.
This value comes from the server in one day. {"Cur_ID": 1, "Date": "2020-08-18T00: 00: 00", "Cur_OfficialRate": 2.9143}.
Cur_ID is the name of the currency, Cur_OfficialRate is the rate itself that should be displayed.
By default, you need to display the course data for the last week, while there should also be a date selection field where you can specify the period for which you want to see the course.
How is this implemented?JavaScript Anonymous, Nov 2, 2020 -
Your competitor is already working here :)
Tyk
On the question: read the API doc andnew Date ()
for helpAnonymous -
According to the API documentation.
In such APIs, a filter by date simply must be. How it is implemented depends on the specific implementation of the API.Anonymous
2 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!