(date: Date)
| 13 | } |
| 14 | |
| 15 | export function dateToYYYYMMDD(date: Date) { |
| 16 | const year = date.getFullYear(); |
| 17 | const month = String(date.getMonth() + 1).padStart(2, "0"); |
| 18 | const day = String(date.getDate()).padStart(2, "0"); |
| 19 | return `${year}-${month}-${day}`; |
| 20 | } |
| 21 | |
| 22 | export function clone(o: any) { |
| 23 | if (typeof structuredClone !== "undefined") { |
no outgoing calls
no test coverage detected