< Back to Demos | Learn more at PaulJAdam.com >

time datetime

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time

The time element datetime attribute value basic syntax must be datetime="YYYY-MM-DDThh:mm:ssTZD" to work.

Static Demo

I have a date on .

VoiceOver outputs "Valentines day February 14, 2008, 8:00 PM"

JavaScript Demo

VoiceOver outputs "current date and time October 23, 2019, 4:54:35 PM"

Other Static Demos

No time tag

Due date is MAR 20. MAR stands for March. If mar 20 is lower case it still says march 20th to VoiceOver. As long as mar and 20 are next to each other it will read as march 20th.

time tag and datetime attribute with a yearless date string

VoiceOver outputs "MAR 20 March 20" and you hear "March 20th, March 20th"

time tag and datetime attribute with a date string

VoiceOver outputs "MAR 20 March 20, 2019" and you hear "March 20th, March 20th, 2019"