You are here: Reference > HTML > attributes > dateTime

dateTime attribute

Browser support:
Sets the timestamp when a deletion or insertion was made.
This is merely an information attribute for the author, it does not have any functionality.
JavaScript page for this attribute: dateTime. You can find other example(s) there.

Possible values:

String that sets the date and time in the following format: YYYY-MM-DDThh:mm:ssTZD. (1977-01-07T08:06:45+06:00)
YYYY
four-digit year
MM
month (two digits: 01=January, etc.)
DD
day (two digits: 01 through 31)
hh
hour (two digits: 00 through 23) (am/pm NOT allowed)
mm
minute (two digits: 00 through 59)
ss
second (two digits: 00 through 59)
TZD
time zone designator. 'Z' - specifies UTC (Coordinated Universal Time) or +/-hh:mm (hour:minute 04:36) specified ahead/behind UTC.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the dateTime attribute:
<ins datetime="2006-01-12T08:00:00Z">one</ins> year old standard.
<ins datetime="2001-01-07T08:06:45+06:00">six</ins> years old standard.
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content