Game Development Reference
In-Depth Information
Datetime
The datetime input type allows the user to select a specific date and time (including
time zone) from a browser-supplied calendar. The specific format and styling of this
calendar is unique to the browser and platform used. The data that results from a
date selection is of the form
YYYY-MM-DDTHH:MM:SS-UTC
.
<input type="datetime"
min="1935-12-16T16:23:42-08:00"
max="2013-08-19T23:59:59-09:00"
/>
Other valid attributes for the date input type include the following:
•
name
(value must be a string): Identifies a particular field by the string
value associated with the attribute
•
disabled
(acceptable values include
disabled
,
""
, or empty): Speci-
fies that the element is disabled and cannot receive control
•
autocomplete
(acceptable values include
on
or
off
): Specifies wheth-
er the browser should store values entered by the user so inputting a
stored value in the future can be automatically completed by the browser
upon hint by user
•
autofocus
(acceptable values include
autofocus
,
""
, or empty): Spe-
cifies to the browser that the element must receive focus immediately
after the document finishes loading
•
min
(value must be a valid date time, as defined in the RFC 3339): Spe-
cifies the lowest date allowed to be selected by the user
•
max
(value must be a valid date time, as defined in the RFC 3339): Spe-
cifies the highest date allowed to be selected by the user
•
readonly
(acceptable values include
readonly
,
""
, or empty): Speci-
fies that the value of this element cannot be changed by the user
•
step
(acceptable values include
any
or any positive integer): Specifies
how the value attribute of the element is to change
•
required
(acceptable values include
required
,
""
, or empty): Speci-
fies that this element must have a valid value in order for the form to be
allowed to submit