Use the min and max attributes to add restrictions to dates:
این قابلیت در internet explorer 11 و نسخه های قبلی آن و همچنین در safari پشتیبانی نمی شود.