(date)
| 481 | } |
| 482 | |
| 483 | function formatDate(date) { |
| 484 | let year = date.getFullYear(); |
| 485 | let month = padZero(date.getMonth() + 1); |
| 486 | let day = padZero(date.getDate()); |
| 487 | return `${year}-${month}-${day}`; |
| 488 | } |
| 489 | |
| 490 | function padZero(num) { |
| 491 | return num.toString().padStart(2, "0"); |
no test coverage detected