Overview

A timestamp provides consistent formats for displaying date and time values.

Sample element

Demos

View a live version of this element to see how it can be customized.

<rh-timestamp date="Tue Aug 09 2006 14:57:00 GMT-0400"></rh-timestamp>

<script type="module">
import '@rhds/elements/rh-timestamp/rh-timestamp.js';
</script>
View the demo

When to use

  • When you need to display date and time values
  • When you need to customize date and time content
© 2021-2024 Red Hat, Inc. Deploys by Netlify