(value: any)
| 31 | function formatDate(date: Date): string { |
| 32 | const year = date.getFullYear(); |
| 33 | const month = String(date.getMonth() + 1).padStart(2, "0"); |
| 34 | const day = String(date.getDate()).padStart(2, "0"); |
| 35 | const hours = String(date.getHours()).padStart(2, "0"); |
| 36 | const minutes = String(date.getMinutes()).padStart(2, "0"); |
| 37 | return `${year}-${month}-${day} ${hours}:${minutes}`; |
| 38 | } |
no test coverage detected