javascript check if two date are ugual
const isSameDate = (dateA, dateB) => {
return dateA.toISOString() === dateB.toISOString();
};
const r = isSameDate(new Date(2010, 10, 20), new Date(2010, 10, 20));
console.log(r); //> true
javascript check if two date are ugual
const isSameDate = (dateA, dateB) => {
return dateA.toISOString() === dateB.toISOString();
};
const r = isSameDate(new Date(2010, 10, 20), new Date(2010, 10, 20));
console.log(r); //> true
check a date is between two dates in javascript
const dateCheck = (from, to, check) => {
let fDate,lDate,cDate;
fDate = Date.parse(from);
lDate = Date.parse(to);
cDate = Date.parse(check);
if((cDate <= lDate && cDate >= fDate)) return true
return false;
}
dateCheck("02/05/2021","02/09/2021","02/07/2021")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us