()
| 1510 | } |
| 1511 | |
| 1512 | function todayDateValue() { |
| 1513 | const now = new Date(); |
| 1514 | const year = now.getFullYear(); |
| 1515 | const month = String(now.getMonth() + 1).padStart(2, "0"); |
| 1516 | const day = String(now.getDate()).padStart(2, "0"); |
| 1517 | return `${year}-${month}-${day}`; |
| 1518 | } |
| 1519 | |
| 1520 | function dateFromInputValue(value) { |
| 1521 | const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(String(value || "")); |
no outgoing calls
no test coverage detected