()
| 420 | * Get yesterday's date in YYYY-MM-DD format. |
| 421 | */ |
| 422 | export function getYesterdayDateString(): string { |
| 423 | const yesterday = new Date() |
| 424 | yesterday.setDate(yesterday.getDate() - 1) |
| 425 | return toDateString(yesterday) |
| 426 | } |
| 427 | |
| 428 | /** |
| 429 | * Check if a date string is before another date string. |
no test coverage detected