WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Input DatetimeLocal Object


Input DatetimeLocal Object

The Information DatetimeLocal Object is new in HTML5.

The Input DatetimeLocal object speaks to a HTML <input> component with type="datetime-local".

Note: <input> components with type="datetime-local" are definitely not upheld in Internet Explorer or Firefox.

Access an Input DatetimeLocal Object

You can get to a <input> component with type="datetime-local" by utilizing getElementById():

var x = document.getElementById("myLocalDate");

Create an Input DatetimeLocal Object

You can make a <input> component with type="datetime-local" by utilizing the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "datetime-local");

Input DatetimeLocal Object Properties

Property Description
autocomplete Sets or returns the estimation of the autocomplete property of a neighborhood datetime field
autofocus Sets or returns whether a nearby datetime field ought to consequently get center upon page load
defaultValue Sets or returns the default estimation of a neighborhood datetime field
disabled Sets or returns whether a neighborhood datetime field is crippled, or not
form Returns a reference to the structure that contains the neighborhood datetime field
list Returns a reference to the datalist that contains the neighborhood datetime field
max Sets or returns the estimation of the maximum trait of the nearby datetime field
min Sets or returns the estimation of the min trait of the nearby datetime field
name Sets or returns the estimation of the name characteristic of a nearby datetime field
readOnly Sets or returns whether the neighborhood datetime field is perused just, or not
required Sets or returns whether the neighborhood datetime field must be rounded out before presenting a form
step Sets or returns the estimation of the progression property of the nearby datetime field
type Returns which sort of structure component the nearby datetime field is
value Sets or returns the estimation of the esteem characteristic of a nearby datetime field

Input DatetimeLocal Object Methods

Method Description
stepDown() Decrements the estimation of the datetime field by a predetermined number
stepUp() Increments the estimation of the datetime field by a predetermined number