Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default (a = new Date(), b = new Date()) => Math.round((new Date(b.getFullYear(), b.getMonth(), b.getDate()) - new Date(a.getFullYear(), a.getMonth(), a.getDate())) / (1000 * 60 * 60 * 24));
Add Comment
Please, Sign In to add comment