HTML datetime attribute
datetime attribute represents the machine-readable value of time. datetime attribute is used where a change in the text occurs i.e. when we insert or delete some text.
task1 has been completed.
task2 has been completed.
new task has been assigned.
Attribute values
All possible values of datetime attributedatatime attribute is used by the browser.
The value of datetime attribute is a valid datetime string. There are many other attributes.
Month string (2012-05)
data string (2012-05-16)
yearless string (--06-24)
time string (12:05:35)
floating date and time string (2012-26-24T12:05:35)
time zone offset string (-11:35 or +12:00)
Global date and time string (12:05:35T12:00Z)
Week string (year-weak and weak=<52)(2012-25)