Skip to main content
More in Learn

Date Component

The date component allows you to pick a single date or date/time and store it.

Date Component Usage

When adding this component to a shape or piece, you can specify the following:

  • Name (required) - A name for the component.
  • Identifier - String that will be generated based on the component name when shape/piece is created or updated. You’ll use the identifier to reference the component programmatically.
  • Discoverable - If Yes, then this component will be available to the Discovery API. To enable the Discovery API, go to Settings > Discovery API or contact us on Slack.
  • Description - An optional description of what the component should contain. This will be visible to anyone who adds content to the component later.
  • Localized Content - If Yes, then you can store different dates for each language set up within your tenant. If No, then the same date will be shared across all languages.
  • Format - Select whether the component will store a date or a date and time.
Date component on shape

Pick Your Date

As an editorial user, you'll be able to specify a date or a date and time in 24-hour format.

Date component input

Catalogue API Access

Once created, date components and their content are accessible via the Catalogue API. Refer to our sample query for retrieving date component content, and to the API docs at https://api.crystallize.com/your-tenant-identifier/catalogue for more information.

People showing thumbs up

Need further assistance?

Ask the Crystallize team or other enthusiasts in our slack community.

Join our slack community