datetime attribute | dateTime property
Sets or retrieves the date and time of a modification to the object.
the date and time a modification.
The following is the standard format for defining the time and date as defined in HTML 4.0 (and taken from the ISO reference 8601:1988).
|Standard Date-Time Format|
The following table shows the datetime syntax.
|MM||Two-digit month (such as: 01=January)|
|DD||Two-digit day of month (01 through 31)|
|hh||Two-digit hour (00 through 23) (A.M./P.M. not allowed)|
|mm||Two-digit minute (00 through 59)|
|ss||Two-digit second (00 through 59)|
|TZD||Time zone designator|
The following table shows values for the Time Zone Designator(TZD) above.
|Z||(Must be uppercase) Specifies Coordinated Universal Time (UTC)|
|+hh:mm||Specified time is hh hours and mm minutes ahead of UTC.|
|-hh:mm||Specified time is is hh hours and mm minutes behind UTC.|
If a generating application does not know the time to the second, it may use the value "00" for the seconds (and minutes and hours if necessary).
The standard specifies an uppercase "T" to indicate the beginning of the time element.
Note This standard does not address the issue of leap seconds.
There is no functionality implemented for this property unless defined by the author.
dateTime was introduced in Microsoft Internet Explorer 6
Build date: 11/28/2012