(date = new Date())
| 31 | }; |
| 32 | |
| 33 | const date2DateStr = (date = new Date()) => { |
| 34 | let {year, month, day} = date2Obj(date); |
| 35 | return obj2DateStr(year, month, day); |
| 36 | }; |
| 37 | |
| 38 | const obj2DateStr = (year, month, day) => { |
| 39 | if (month < 10) month = `0${month}`; |
no test coverage detected
searching dependent graphs…