Installing Smart Date
Last updated on
29 June 2019
The smart_date module is installed like any Drupal module in D8. Multiple
methods are possible, but installation via composer is recommend, especially
sites where Drupal was installed via composer.
Simply change into Drupal directory and use composer to install:
cd $DRUPAL
composer require drupal/smart_dateUpon installation, Smart Date will create a number of preset Smart Date Formats, including:
- Default - a longer-form date/time presentation, that follows North American journalistic standards
- Date only - only shows the date, no time, which could be useful for specific use cases like groupings in views
- Time only - similar to the above, but only showing the time, no date
- Compact - a more succinct presentation of the date and time
These are all configuration entities, so they can be edited, or translated. You can create your own formats, or delete any of the provided presets (except for Default).
Once Smart Date is installed, you'll have a new field type, Smart Date Range, available to add to your content types (or other entity bundles).
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion