Files
30-seconds-of-code/test/tomorrow/tomorrow.js
2018-02-10 11:45:04 -05:00

8 lines
218 B
JavaScript

const tomorrow = () => {
let t = new Date();
t.setDate(t.getDate() + 1);
return `${String(t.getMonth() + 1).padStart(2, '0')}-${String(
t.getDate()
).padStart(2, '0')}-${t.getFullYear()}`;
};
module.exports = tomorrow;