Input Date type Attribute

Definition and Usage

type Property returns the type of the form element for the date field.

Example

Return the form element type of the date field:

var x = document.getElementById("myDate").type;

Try It Yourself

Syntax

inputdateObject.type

Technical Details

Return Value: A string value that indicates the type of form element to which the date field belongs.

Browser Support

The numbers in the table indicate the first browser version that fully supports this property.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 10.0 Support Support Support

Note:The <input type="date"> element does not display any date field/calendar in IE 11 and earlier versions.