How to check if input date exists between two date columns? Nodejs sequel
P粉2376895962024-03-30 23:52:55
0
1
484
The date entered by the user is to check whether the date is between or exists between the start_Date column and the end_Date column of the MySQL database. Using NodeJS
If you use Sequelize for this type of query, you can use the
Op.gte
andOp.lte
operators to achieve these two comparisons: