ran npm run tdd & generated TDD
This commit is contained in:
4
test/JSONToDate/JSONToDate.js
Normal file
4
test/JSONToDate/JSONToDate.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = arr => {
|
||||
const dt = new Date(parseInt(arr.toString().substr(6)));
|
||||
return `${dt.getDate()}/${dt.getMonth() + 1}/${dt.getFullYear()}`;
|
||||
};
|
||||
Reference in New Issue
Block a user