Closed AWAIS97 closed 4 years ago
{new Date(lastUpdate).toDateString()} Try adding this.
I already tried this but this give Invalid Date.
Can you share the link of your repository. I'll check and comment back.
https://github.com/AWAIS97/Covid-19site.git
let me know soon..
Just a small thing you missed. It's lastUpdate "capital letter U" You typed small letter everywhere while de-structuring. Check that. I hope everything'll be fine after this.
Ok I got it. But still undefine in line chart at buttom and in hover.
Yeah, Same issue here as well. You can fix it by using today's date. i.e {new Date(Date.now()).toDateString()}
Make sure the variable is lastUpdate not lastUpdated. Check in Api and index,js. You migh be using lastUpdated... It worked and solved my issue
ok bro thanks for sharing
Hi, I am getting invalid date on cards and also I found undefine in date buttom of line chart and also when i hover on the line chart. That i am missing?