Input Type DateTime-local
It is used to enter the date and time. a date time picker will be provided on the form to select date, month, year, and time.
Attributes of Input Type DateTime-local
It is used to enter the date and time. a date time picker will be provided on the form to select date, month, year, and time.
Attributes of Input Type DateTime-local
- min- used to set the minimum date and time value.
- max- used to set the maximum date and time value.
- step- it is used to convert the second into milliseconds.
example
<!Doctype Html>
<html>
<body>
<h1>Input Type Date Time</h1>
<form>
DateTime-local :<input type="datetime-local"><br />
</form>
</body>
</html>
Input Type DateTime
It allows you to enter year, month, day, hour, minute, second, and fraction of a second in the Coordinated Universal time.
example
<!Doctype Html>
<html>
<body>
<h1>Input Type Date Time</h1>
<form>
DateTime :<input type="datetime"><br /><br />
</form>
</body>
</html>
Input Type Date
It allows you to enter the day, month, year by using the date time picker.
example
<!Doctype Html>
<html>
<body>
<h1>Input Type Date Time</h1>
<form>
Date :<input type="date"><br />
</form>
</body>
</html>
Input Type Month
Allows you to enter the month in the input control.
Attributes of Input Type Month
- min- used to set the minimum month.
- max- used to set the maximum month
example
<!Doctype Html>
<html>
<body>
<h1>Input Type Date Time</h1>
<form>
Month :<input type="month"><br />
</form>
</body>
</html>
Input Type Week
Allows you to enter the week of the month.
example
<!Doctype Html>
<html>
<body>
<h1>Input Type Date Time</h1>
<form>
Week :<input type="week"><br />
</form>
</body>
</html>
Input Type Time
allows you to enter time in the input control.
example
<!Doctype Html>
0 comments:
Post a Comment