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

108
Views
Javascript selectquery date between

I am having trouble on query BETWEEN two dates, what I want is when the user have event will return true and if not then false

The startDate value in my database are 2022-05-01 23:59

the date i get on my form are 14/04/2022 03:32 PM

SELECT assignedTo, startDate FROM Event WHERE assignedTo LIKE '%" + userId + "%' AND startDate BETWEEN " + moment(date).startOf(`day`).format() + " AND " + moment(date).endOf(`day`).format()

the value of moment(date).endOf(day).format() is Invalid date

about 4 years ago · Santiago Gelvez
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!