Lidarr/frontend/src/Utilities/Date/isTomorrow.js

12 lines
187 B
JavaScript
Raw Normal View History

2017-09-04 02:20:56 +00:00
import moment from 'moment';
2017-10-07 06:21:06 +00:00
function isTomorrow(date) {
2017-09-04 02:20:56 +00:00
if (!date) {
return false;
}
return moment(date).isSame(moment().add(1, 'day'), 'day');
}
2017-10-07 06:21:06 +00:00
export default isTomorrow;