Juicebox
Preparing your dataStory DesignerVisual design tips
  • Juicebox Documentation
  • What is Juicebox?
    • Technology requirements
  • Getting Started
    • Getting a Workspace
    • Reach out to us
  • Building Reports
    • Creating and Editing Reports
    • Data
      • Loading data
      • Managing data
      • The data preview
    • Design
      • Slices
        • Dynamic text
        • Customizing what shows
        • Multiple data tables
        • Charts
          • Headline
          • Filters
          • Chooser
          • Table
          • Card
          • Reports Navigation
          • Bar
          • Scatterplot
          • Leaderboard
          • Map
          • Trend
          • Pie
        • Selections as Variables
        • Debug
      • Ingredients
        • The ingredient editor
          • The dimension ingredient editor
          • The measure ingredient editor
        • Adding new ingredients
        • Advanced field formulas
        • Time formats
        • Number formats
    • Share
      • Publishing a report (or report changes)
      • Inviting viewers
      • Insights
    • Tips and Tricks
      • Telling data stories
      • Visual design
      • Preparing your data
      • Useful resources
  • Viewing Reports
    • Signing In
    • Navigating Reports
    • Focus and Filter
  • Managing Users
    • Adding Users
    • User Roles and Management
    • Limiting what data users can see
    • Access Views
    • Embedding Juicebox Apps
      • How embedding works
      • Juicebox Embedding API
      • Juicebox API
    • Requesting data from embedded apps
  • Managing my workspace
    • Workspace Settings
    • Subscription and Billing
  • Changelog 🎁
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Building Reports
  2. Design
  3. Ingredients

Time formats

PreviousAdvanced field formulasNextNumber formats

Last updated 6 months ago

Was this helpful?

To control how date or time dimensions are displayed in the report, you can specify a format. For example, let's say you have a dimension called Release Year. A representative value for Release Year in your data is 2019-03-01. You probably do not want to display the unformatted value in your report. Therefore, you will want to specify a time format in the ingredient editor.

The time format specified will determine how the date or time value will display in your report. The following date formats are available for selection in the column editor:

format label

d3 equivalent

How value2019-03-01will display

month dd, yyyy

%B %-d, %Y

March 1, 2019

dd mon yyyy

%-d %b %Y

1 Mar 2019

mm/dd/yyyy

%-m/%-d/%Y

3/1/2019

mm-dd-yyyy

%-m-%-d-%Y

3-1-2019

month yyyy

%B %Y

March 2019

yyyy

%Y

2019

Date or time ingredients will "roll up" in charts to the period selected for the Format. For example, selecting the month yyyy format will roll up to the month. Selecting the yyyy format will roll up to the year.

If you want to apply a time format other than one in the dropdown, you can do so by entering the custom format in the Time format box using these . For example, let's say you want to display Release Years like "Mar 01 2014" (abbreviated month, padded day, and full year with no commas). You can do by entering %b %d %Y, like so:

codes
Select a time format
Enter a custom time format