JavaScript Reference/Javascript Properties/dateTime
Содержание
"dateTime" Example
<html>
<body>
<script language="JavaScript">
function function1() {
document.all.myDel.dateTime = "2013-06-15T14:50:30Z";
alert(document.all.myDel.dateTime);
}
</script>
<del id="myDel">This text has been deleted.</del>
<input type="button"
onClick="function1();"
value="Display date and time of the above text deletion">
</body>
</html>
"dateTime" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<del> <ins> |
+----------------+--------------------------------------------------------------+
"dateTime" Possible Values
Possible Values
YYYY-MM-DDThh:mm:ssTZD standard time format
YYYY-MM-DDZ hh:mm:ssTZD UTC time format
"dateTime" Syntax and Note
Note:
Read and write property.
Sets a new date and time.
Syntax:
document.getElementById("elementID").dateTime = value
document.all.elementID.dateTime = value // IE only