You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import moment from 'moment';
|
|
|
|
function isInNextWeek(date) {
|
|
if (!date) {
|
|
return false;
|
|
}
|
|
const now = moment();
|
|
return moment(date).isBetween(now, now.clone().add(6, 'days').endOf('day'));
|
|
}
|
|
|
|
export default isInNextWeek;
|