Date Component
The date component allows you to pick a single date or date/time and store it.
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.
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.