Stay organized with collectionsSave and categorize content based on your preferences.
If your chart has a time dimension on the x-axis, you can change the formatting of the x-axis label by using theTime Label Formatsetting in theXtab of the visualization options.
Time label expressions
You can format time values in Looker charts by using the syntax in the following table.
Format Type
Description
Expression
Time
Time
Milliseconds as a decimal number: 000 to 999
%L
Time
Second as a two-digit number: 00 to 59
%S
Time
Minute as a two-digit number: 00 to 59
%M
Time
Hour as a decimal number (24-hour clock): 00 to 23
%H
Time
Hour as a decimal number (12-hour clock): 01 to 12
%I
Time
Either AM or PM
%p
Date
Date
Day of the year as a decimal number: 001 to 366
%j
Date
Zero-padded day of the month: 01 to 31
%d
Date
Space-padded day of the month (equivalent to%_d): 1 to 31
%e
Date
Full weekday name: Monday, Tuesday, Wednesday
%A
Date
Abbreviated weekday name (3-letter): Mon, Tue, Wed
%a
Date
Weekday as a decimal number (Sunday as the first day of the week): 0 to 6
%w
Week
Week
Week number of the year (Sunday as the first day of the week) as a two-digit number: 00 to 53
Note:%Uuses theISO week datestandard offset by one day.
%U
Week
Week number of the year (Monday as the first day of the week) as a two-digit number: 00 to 53
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Time formatting for charts\n\n| **Note:** This page is part of the [Retrieve and chart data](/looker/docs/2512/retrieve-and-chart-data) learning series.\n\nIf your chart has a time dimension on the x-axis, you can change the formatting of the x-axis label by using the **Time Label Format** setting in the **X** tab of the visualization options.\n\nTime label expressions\n----------------------\n\nYou can format time values in Looker charts by using the syntax in the following table.\n\n| **Note:** Quarter time formatting is not supported. Consider including a quarter timeframe in your date [dimension_group](/looker/docs/2512/reference/param-field-dimension-group) and selecting that quarter timeframe in the visualization to display and filter data by quarters.\n\nExamples\n--------\n\nYou can combine expressions together to create custom time formats, such as in the examples in the following table."]]