* Serializes a calendar cell to the `YYYY-MM-DD` wire format used across the * date filters. Built from local Y/M/D parts so there is no UTC offset shift.
(year: number, month: number, day: number)
| 45 | * date filters. Built from local Y/M/D parts so there is no UTC offset shift. |
| 46 | */ |
| 47 | function toDateString(year: number, month: number, day: number): string { |
| 48 | return `${year}-${pad2(month + 1)}-${pad2(day)}` |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Parses a `YYYY-MM-DD` string (or `Date`) into a local `Date`. `YYYY-MM-DD` |
no test coverage detected