Date And Time Text Patterns




Date

Default

Apr 4

Aug 2, 2012

Sat
Dec 2, 2017


Apr 4

Aug 2, 2012

Sat
Dec 2, 2017

Variants

Apr 4

Apr 4

Apr 4

Sat
Apr 4

Sat
Apr 4

Alignment

Sat
Apr 4


Sat
Apr 4


Sat
Apr 4

Timezones

East Coast (Default)
Apr 4

West Coast
Apr 4

Toyko, Japan
Apr 5

Anti-pattern example
Apr 4
Date.today ignores Timezone

DateTime respects Timezone
Apr 5
'.now' in Australia is tomorrow (if you're EST after 10am)

String Dates
Aug 1, 2012
Defaults to UTC, then changes due to EST Timezone.

Depending on the data you send to the date prop you might have unexpected results due to ruby Date and DateTime classes.

Don't care about timezones? Use Date.

If you need a date that recognizes a timezone, especially when paired with the Time kit, leverage DateTime.

Show Current Year

Apr 4, 2026

By default, the Date kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting showCurrentYear/show_current_year to true as shown here.

Unstyled

Example with no year
Apr 4

Example with wrapping typography kit

Aug 2, 2012


Example with icon + subcaption
Thu
Aug 2, 2012

For alternative typography styles, you can pass a boolean prop called unstyled to the Date kit and wrap it in any of our typography kits (Title, Body, Caption, etc.). This will allow the Date kit to inherit any of our typography styles.

Date Range Inline

Default






Show Current Year


By default, the Date Range Inline kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting showCurrentYear/show_current_year to true as shown here.

Date Range Stacked

Default

18 JUN

2019

20 MAR

2020

Date Stacked

Default

Apr


Mar


Show Current Year

Apr

2026

Apr

2026

By default, the Date Stacked kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting showCurrentYear/show_current_year to true as shown here.

Day & Month Reverse

Apr


Apr


Sizes

Apr


Apr


Alignment

Apr


Apr


Apr


Apr


Apr


Apr


Bold

Apr


Mar


Apr


Date Time

Default

Sat
Apr 4

Sat
Apr 4

Apr 4

Apr 5

Alignment

Apr 4

Apr 4

Apr 4

Size

Sat
Apr 4

Apr 5


Sat
Apr 4

Apr 5

Show Current Year

Apr 4, 2026

Pass in show_current_year to show this date's current year.

Date Time Stacked

Default

Apr


Mar


Apr


Apr


Show Current Year

Apr

2026


Apr

2026


By default, the Date Time Stacked kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting showCurrentYear/show_current_year to true as shown here.

Date Year Stacked

Default

4 APR

2026


4 APR

2026


4 APR

2026

Use this kits on table displays or column headers to display a single date format.

Time

Default










Use this anywhere needed to display a certain timestamp

Sizes



Timestamp Values




Handling Timezones

East Coast


Central


Mountain


West Coast


Toyko, Japan


Simply enter the timezone you would like to use and it will appear.

The list of supported timezones is exhaustive and we're most likely to only use timezones from the Americas so we've highlighted those in the examples.

However, if you need to support another timezone you should be able to Google a specific list, otherwise you can follow the string pattern and try entering a continent and a city.

Remember, this is just labeling the timezone, please verify the actual time for a specified timezone is rendering properly.

Format: <Continent>/<Large_City_Name>

Continent Options: America | Europe | Asia | Africa | Pacific | India | Atlantic | Australia

Alignment




Unstyled

Example with no year

Example with wrapping typography kit


Example with icon + subcaption

For alternative typography styles, you can pass a boolean prop called unstyled to the Time kit and wrap it in any of our typography kits (Title, Body, Caption, etc.). This will allow the Time kit to inherit any of our typography styles.

Time Range Inline

Default

11:49a 1:49p

11:49a 1:49p


11:49a 1:49p EDT

11:49a 1:49p EDT


11:49a 1:49p

11:49a 1:49p


11:49a 1:49p EDT

11:49a 1:49p EDT

Time Stacked

Default




Timestamp

Default

Apr 4 · 2:28p

Apr 4, 2030 · 2:28p

Apr 4, 2025 · 2:28p

By default, the timestamp kit will display the date and time as shown here. If the date is NOT within the current year, the year will also be shown while dates in the current year will not show the year.

Hide Date

2:28p

The showDate/show_date prop is set to true by default but can be set to false to hide the date.

Hide Time

Apr 4

Apr 4, 2030

Apr 4, 2025

The showTime/show_time prop is set to true by default but can be set to false to hide the time.

Show Current Year

Apr 4, 2026 · 2:28p

Apr 4, 2026

Use the showCurrentYear/show_current_year prop to show the year even if it is the current year. This is set to false by default.

Show Timezones

2:28p EDT

Apr 4 · 2:28p EDT

Apr 4, 2030 · 2:28p EDT

Apr 4, 2025 · 2:28p EDT

2:28a HKT

Apr 5 · 2:28a HKT

Apr 5, 2030 · 2:28a HKT

Apr 5, 2025 · 2:28a HKT


The showTimezone/show_timezone prop can be used to show the timezone as well. This is set to false by default. NOTE: This prop must be used in conjunction with the timezone prop to specify which timezone to display.

Alignments

2:28p

Apr 4 · 2:28p

Apr 4, 2030 · 2:28p

Apr 4, 2025 · 2:28p


2:28p

Apr 4 · 2:28p

Apr 4, 2030 · 2:28p

Apr 4, 2025 · 2:28p


Apr 4 · 2:28p

Apr 4 · 2:28p

Apr 4, 2030 · 2:28p

Apr 4, 2025 · 2:28p

The align prop can be used to set alignment. This prop is set to 'left' by default.

Time Ago (Elapsed Variant)

Last updated by Maricris Nonato a few seconds ago

Last updated 3 months ago

A year ago

Use variant elapsed to show time ago. This variant can be customized in several ways:

Use the optional showUser/show_user prop to show user as part of the text. When showing the user, pass in the user name using the text prop as shown. showUser/show_user is set to false by default.

Use the optional hideUpdated/hide_updated prop to hide the 'Last updated' text if needed.

Last Updated by (Updated Variant)

Last updated by Maricris Nonato on Apr 4 at 2:28p

Last updated on Apr 4 at 2:28p

Use variant updated to show last updated at timestamp.

This variant can be customized using the optional showUser/show_user prop to show user as part of the text. When showing the user, pass in the user name using the text prop as shown.

showUser/show_user is set to false by default.

Last Updated by (Updated Variant) - Show Current Year

Last updated by Maricris Nonato on Apr 4, 2026 at 2:28p

Last updated on Apr 4, 2026 at 2:28p

The updated variant can also be used in conjunction with the showCurrentYear/show_current_year prop to show the year even if it is the current year.

Last Updated by (Updated Variant) - Hide Date

Last updated by Maricris Nonato at 2:28p

Last updated at 2:28p

The updated variant can also be used in conjunction with the showDate/show_date prop. This prop is set to true by default but can be set to false to hide the date.

Last Updated by (Updated Variant) - Hide Time

Last updated by Maricris Nonato on Apr 4

Last updated on Apr 4

Last updated on Apr 4, 2026

The updated variant can also be used in conjunction with the showTime/show_time prop. This prop is set to true by default but can be set to false to hide the time. This can also be used in conjunction with showCurrentYear/show_current_year to show the year even if it is the current year.

Unstyled

Basic unstyled example
Apr 4 · 2:28p

Example with wrapping typography kit

Apr 4 · 2:28p


For alternative typography styles, you can pass a boolean prop called unstyled to the Timestamp kit and wrap it in any of our typography kits (Title, Body, etc.). This will allow the Timestamp kit to inherit any of our typography styles.

Weekday Stacked

Default


Compact


Variant