Add option to show only start or end date in the DateTime Range custom formatter

Created on 14 November 2016, over 8 years ago
Updated 14 April 2023, about 2 years ago

Problem/Motivation

Currently, date range fields are always displayed with start and end date.

There are situations where only one of these values should be displayed, e.g. when creating a view for upcoming events where we only want to show the start date.

Proposed resolution

Add an option to the date range formatter to select both start and end date (default), only start date or only end date.
Show the separator field only when the first option is selected.

Remaining tasks

  • Address patch review in #30
  • (#75)

User interface changes

Content type display:

Views:

API changes

Data model changes

New from_to configuration setting.

Release notes snippet

โœจ Feature request
Status

Needs work

Version

10.1 โœจ

Component
Datetimeย  โ†’

Last updated 5 days ago

Created by

๐Ÿ‡ช๐Ÿ‡ธSpain rodrigoaguilera Barcelona

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024