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

Sample element


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';
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-2023 Red Hat, Inc. Deploys by Netlify