DateTime
DateTime serves for displaying and formatting a point in time.
Rules For Developers
- DateTime normally renders as a
time
element. This can be overridden with thecomponent
prop - When DateTime renders as HTML
time
, it will set the machine-readabledatetime
HTML attribute automatically to either ISO-8601 calendar date or full timestamp based on whether theformat
prop mentions hours. The datetime value can be overridden usinghtmlDateTimeAttribute
prop