(date)
| 444 | } |
| 445 | |
| 446 | function dateToString(date) { |
| 447 | let day = date.getDate().toString().padStart(2, "0"); |
| 448 | let month = (date.getMonth() + 1).toString().padStart(2, "0"); |
| 449 | let year = date.getFullYear(); |
| 450 | let dateString = `${year}-${month}-${day}`; |
| 451 | return dateString; |
| 452 | } |
| 453 | |
| 454 | function getPath(date) { |
| 455 | return `/log/${dateToString(date)}`; |