Test example of HTML5 date and time control

Source: Internet
Author: User
Tags datetime

HTML5 defines several new date-related controls. Browsers that support date controls provide a convenient Drop-down calendar for users to choose from.
Note: Currently only chrome and opera provide Drop-down calendar support, other browsers are still a normal text box.

1, date control--date


<input type= "Date" value= "2015-09-24"/>

2, Time Control-times

<input type= "Time" value= "13:59"/>
<input type= "Time" value= "13:59:59"/>

3, Date Time Control-datetime-local

<input type= "datetime-local" value= "2015-09-24t13:59:59"/>

4, Month control-month

<input type= "Month" value= "2015-09"/>

5, Week control-week

<input type= "Week" value= "2015-w02"/>

6, the date time control also supports the Min and Max properties, indicating the minimum and maximum time that can be set

Original: HTML5 new control-date and time selection input

<input type= "Date" value= "2015-09-24" min= "2015-09-16" max= "2015-09-26"/>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.