Hey Fellas,

I’ve been trying to build a COVID tracker in React among the bazillion ones already there. I filtered the API objects using a date range in the state to print yesterday’s data only. Right now I am using a manual placeholder date like so:

Post image

How do I write a function to create a variable with yesterday’s date in this format: 2020-04-20T00:00:00Z

Thank you!



Source link

Write A Comment