这是日期类型的输入框的代码-
<label htmlFor="invoiceDate">Invoice Date</label>
<input
type="date"
name="invoiceDate"
id="invoiceDate"
placeholder="Invoice Date"
autoComplete="off"
value={invoicedate}
onChange={(e) =>setInvoicedate(e.target.value)}
/>
<input type='date' min="2019-01-02" max='2023-01-02' />