(date: Date)
| 14 | * @returns UTC midnight of the given date. |
| 15 | */ |
| 16 | export function getUtcMidnight(date: Date): Date { |
| 17 | return new Date( |
| 18 | Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate()) |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Parses a date string in the format "YYYY-MM-DD" and returns a Date object set to UTC midnight. |
no outgoing calls
no test coverage detected