Skip to content
Material Design 1
Main Navigation
v3
v2
v1

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

English

简体中文
繁體中文
Español
Français
Русский
Português – Brasil
Deutsch
日本語
한국어
Italiano
Polski
Türkçe
čeština
magyar

Appearance

Sidebar Navigation

Material Design

Environment

Material properties

Elevation & shadows

What's new

Motion

Material motion

Duration & easing

Movement

Transforming material

Choreography

Creative customization

Style

Color

Icons

Imagery

Typography

Writing

Layout

Principles

Units & measurements

Metrics & keylines

Structure

Responsive UI

Split screen

Components

Bottom navigation

Bottom sheets

Buttons

Buttons: Floating Action Button

Cards

Chips

Data tables

Dialogs

Dividers

Expansion panels

Grid lists

Lists

Lists: Controls

Menus

Pickers

Progress & activity

Selection controls

Sliders

Snackbars & toasts

Steppers

Subheaders

Tabs

Text fields

Toolbars

Tooltips

Widgets

Patterns

Confirmation & acknowledgement

Data formats

Empty states

Errors

Fingerprint

Gestures

Help & feedback

Launch screens

Loading images

Navigation

Navigation drawer

Navigational transitions

Notifications

Offline states

Permissions

Scrolling techniques

Search

Selection

Settings

Swipe to refresh

Growth & communications

Introduction

Onboarding

Feature discovery

Gesture education

Usability

Accessibility

Bidirectionality

Platforms

Platform adaptation

Android

Resources

Color palettes

Devices

Layout templates

Roboto & Noto fonts

Sticker sheets & icons

Shadows

On this page

Data formats ​

Different types of numeric and linguistic data are represented using data formats.

Date and time values may be formatted to depict ranges, time zones, abbreviations, and more, as appropriate to the context.

Data redaction and truncation guidelines describe how to represent truncated numbers and disguise sensitive data.

Formats represented

Time
Month, day, year
Approximating time
Absolute time
Time zones
Abbreviations
Rounded numbers

000 • • • 0000

12:00 UTC

Data truncation and time display examples

Date & time ​

Date and time

How you format the date and time depends on a few factors:

  • If the time or date is the current one
  • Whether you are using the 12-hour or 24-hour clock
  • How specific you need to be
ElementDescriptionExample
TimeWithin the current day, display the time using uppercase AM or PM, without periods. If you are using the 24-hour clock, display the time without AM/PM.

Many non-English languages use lowercase am and pm.
2:00 PM
14:00
Month, day, and yearWithin the current calendar year, display the date without the year. Otherwise, display the date and year.January 14
14 January 2012
Approximate timeApproximate time rounds down to the largest and most recent date or time unit.In 5 minutes
3 days ago
Absolute timeWhen approximate time isn’t appropriate, display the specific date and/or time.Today, 10:00 AM

Time and date ranges

Date and time ranges are formatted based on the following:

  • The year is the same on both sides of the range
  • It’s the current year on both sides of the range
  • Whether both times have the same AM or PM
Range elementDescriptionExample
En dashSeparate a range of dates or times with an en dash, without spaces. Add spaces when spelling out months, or to remove ambiguity.8:00 AM–12:30 PM
6 Jan – 2 Feb
YearShow the year on both the start and end, unless both dates have the current year.Dec 6, 2013–Jan 2, 2014
January 4–6, 2014
AM/PMUse a single AM or PM at the end of the range, if both times have the same AM/PM.8:00–10:30 AM

Time zones

As time zones vary across regions, time zone usage should be both clear and relevant.

Types of time zonesDescriptionExample
Single-digit hoursRemove the leading 0 for single digit hours.UTC+5:00
Single time zoneUse two-letter time zones when referring to a single time zone. Remove the S (for Standard) or D (for Daylight).Open 4–10 PM ET
Combination time zonesWhen specifying a date for a nationwide audience, include Standard or Daylight acronyms (such as EDT) to avoid confusion. Some U.S. states, such as Arizona, don't use daylight savings time.The first game is on April 13, 2015 at 4 PM EDT.

Date and time modifications by context

Depending on the context, show either date or time, or both date and time.

ContextDescriptionExample
FutureInclude time to a future day or date.10 Jan, 08:00
PastWhen referring to a past time, display both date and time.Reminded Jan 5, 7:16 AM
Distant pastOmit the time for events in the distant past.3 Jan
WeekdayWhen referring to a day of the week, such as for Calendar invites, display the abbreviated day separated by a comma.Mon, Jan 10, 8:00 AM
DurationShow the duration of a recording, like audio or video, in the format H:MM:SS. Omit hours or seconds if they don’t apply.

Use the same format across the same context. A video labelled “3:15” referring to hours and minutes, should not use that time format later on that page to refer to minutes and seconds.
0:30
1:01:05

Abbreviations

Where space is limited, use abbreviations for months and days.

Time periodDescriptionExample
MonthsMonths can be abbreviated or numeric. Many languages do not abbreviate month names.Jan 6
3/12/12
Date formatThe US date format is month/day/year, but other countries use day/month/year.March 12, 2012 written as 03/12/12 could be misinterpreted to mean December 3, 2012 across different users.
Days of the weekDays of the week may be abbreviated using the first letter of each day.S for Sunday
M for Monday
Day and timeAbbreviated days of the week may be combined with a time.Sun, 2:00 PM
Sun, 14:00
Rounded numbersAbbreviated numerical units, which remove the “:00,” are appropriate for timestamps, labels on graphs, durations, etc.8 AM
2 hr 32 min ago

Talking about date and time ​

Display date and time information as people normally speak to each other, when space is available.

  • Refer to yesterday or tomorrow in those terms
  • If the day is in the upcoming week, display the day of the week (such as Tuesday)
  • Describe a time of day in other ways that promote understanding, such as, “Store open 9:00 AM–Midnight” or “Reminder for tomorrow afternoon”

Data redaction and truncation ​

Redacting numbers ​

Redacting numbers

When to use 3 ellipses

To redact most numbers, like Social Security numbers, use three midline ellipses [• • •].

You may use this format across typefaces and platforms:
1. Place two regular spaces before the first midline ellipse
2. Then add a thin space between each midline ellipse and after the final one

Or, use the Unicode string instead:
U0020,U0020,U2022,U2006,U2022,U2006,U2022,U2006

SSN • • • 5678

Do.

When to use 4 ellipses

Credit and debit card data must be redacted using four midline ellipses [• • • •].

Written in Unicode:
U0020,U0020,U2022,U2006,U2022,U2006,U2022,U2006,U2022,U2006

Visa • • • • 1234

Do.

Ellipses for credit card redaction

Redacting letters

Baseline ellipses [...] represent letters, words, or phrases that aren’t shown. They also represent when a name or email address is only partially visible.

Usage

Type the ellipses as three periods in a row (or Unicode character U2026) after the last letter shown.

PayPal krestovozdvizhensky@goog…

Do.

Redacted email address with three baseline ellipses.

Pager
Previous pageConfirmation & acknowledgement
Next pageEmpty states

Released under the Apache-2.0

Copyright © 2014-Present Google

https://m1.material.io/patterns/data-formats.html

Released under the Apache-2.0

Copyright © 2014-Present Google