Return the date and time of when some text was inserted:
The result of x could be:
The dateTime property sets or returns the value of the datetime attribute of an inserted text.
The datetime attribute specifies the date and time of when the text was inserted/changed.
Note: The datetime attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
The dateTime property is supported in all major browsers.
Return the dateTime property:
Set the dateTime property:
|YYYY-MM-DDThh:mm:ssTZD||Specifies the date and time of when the text was inserted/changed.
Explanation of components:
|Return Value:||A String, representing the date and time of when the text was inserted|
Change the value of the datetime attribute:
HTML reference: HTML <ins> datetime attribute