atomic-result-date

This is for:

Developer
In this article

See Display results to learn more about customizing your result templates.

The atomic-result-date component renders the value of a date result field.

Properties

Property Attribute Description Type Default

field

field

The result field which the component should use. This will look for the field in the Result object first, and then in the Result.raw object. It is important to include the necessary field in the atomic-search-interface component.

string

'date'

format

format

string

'D/M/YYYY'

relativeTime

relative-time

Whether the date should display in the relative time format.

To modify the relative time string, use the localization feature.

boolean | undefined