Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
How to get the value of date parameter to compare it with today date from a object of values taken from backend as a object in react useEffect?

I took data from backend and I want to take one value from that data object and do calculations using that value.

const[scheduleData,setScheduleData] = React.useState();
    


    useEffect(() => {
        api.get('api/schedule')
        .then((res) => {
          //  console.log(res.data);
            setScheduleData(res.data.data);
           console.log(res.data.data.data);
        })
        .catch((err) =>{
           // console.log("error")
        })
    })

There is a value called date is in this data object. I want to take that value and compare it with today and want to print whether is it expired or not.
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!