Ví dụ thêm điều kiện trong input date Code: <!DOCTYPE html> <html> <body> <form action="/demo/action_page.php"> Nhập ngày sinh trước 01/01/1980:<br> <input type="date" name="bday" max="1979-12-31"><br><br> Nhập ngày sinh sau 01/01/2000:<br> <input type="date" name="bday" min="2000-01-02"><br><br> <input type="submit" value="Gửi"> </form> <p><strong>Lưu ý:</strong> type="date" chưa được hỗ trợ trong trình duyệt Internet Explorer và Firefox.</p> </body> </html> Kết quả: