del dateTimeProperties
Example
Return the date and time when the text was deleted:
var x = document.getElementById("myDel").dateTime;
xThe output result is:
2011-11-15T22:55:03Z
Try it Yourself »
Definition and Usage
The dateTime property is used to set or return the value of the datetime attribute of the deleted text.
The datetime attribute defines the date and time of the deleted text.
Note:The dateTime property has no visual effect in ordinary web browsers, but can be used by screen readers.
Browser Support
![]()
All major browsers support the dateTime property.
Syntax
Return the dateTime property:
delObject.dateTime
Set the dateTime property:
delObject.dateTime=YYYY-MM-DDThh:mm:ssTZD
Attribute Values
| Value | Description |
|---|---|
| YYYY-MM-DDThh:mm:ssTZD |
A date or time. The following explains its components:
|
Technical Details
| Return Value: | A String, representing the date and time of a deleted text |
|---|
More Examples
Example
Modify the dateTime property:
document.getElementById("myDel").dateTime="2013-11-15T21:40:07Z";
Try it Yourself »
Related Pages
HTML Reference:HTML <del> datetime attribute
Other Extensions
del Object