Search for date

  1. Search 7.x for date
  2. Search 9.5.x for date
  3. Search 8.9.x for date
  4. Search 10.3.x for date
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Date class core/modules/views/src/Plugin/views/sort/Date.php Basic sort handler for dates.
Date class core/modules/views/src/Plugin/views/field/Date.php A handler to provide proper displays for dates.
Date class core/modules/views/src/Plugin/views/filter/Date.php Filter to handle dates stored as a timestamp.
Date class core/modules/views/src/Plugin/views/argument/Date.php Argument handler for dates.
Date class core/modules/datetime/src/Plugin/views/sort/Date.php Basic sort handler for datetime fields.
Date class core/modules/datetime/src/Plugin/views/filter/Date.php Date/time views filter.
Date class core/modules/datetime/src/Plugin/views/argument/Date.php Abstract argument handler for dates.
Date class core/lib/Drupal/Core/Render/Element/Date.php Provides a form element for date or time selection.

All search results

Title Object type File name Summary
DateHelper::weekDaysAbbr1 function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs a translated array of 1-letter week day abbreviations.
DateHelper::weekDaysAbbr2 function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs a translated array of 2-letter week day abbreviations.
DateHelper::weekDaysOrdered function core/lib/Drupal/Core/Datetime/DateHelper.php Reorders weekdays to match the first day of the week.
DateHelper::weekDaysUntranslated function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an untranslated array of week days.
DateHelper::years function core/lib/Drupal/Core/Datetime/DateHelper.php Constructs an array of years in a specified range.
DateHelperTest class core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php @coversDefaultClass \Drupal\Core\Datetime\DateHelper
@group Datetime
DateHelperTest.php file core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
DateHelperTest::$languageManager property core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php The language manager.
DateHelperTest::providerTestWeekDaysOrdered function core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
DateHelperTest::setUp function core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php
DateHelperTest::testDayOfWeek function core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php @covers ::dayOfWeek
DateHelperTest::testDayOfWeekName function core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php @covers ::dayOfWeekName
DateHelperTest::testDaysInMonth function core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php @covers ::daysInMonth
DateHelperTest::testDaysInYear function core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php @covers ::daysInYear
DateHelperTest::testWeekDaysOrdered function core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.php @covers ::weekDaysOrdered
@dataProvider providerTestWeekDaysOrdered
Datelist class core/lib/Drupal/Core/Datetime/Element/Datelist.php Provides a datelist element.
Datelist.php file core/lib/Drupal/Core/Datetime/Element/Datelist.php
Datelist::checkEmptyInputs function core/lib/Drupal/Core/Datetime/Element/Datelist.php Checks the input array for empty values.
Datelist::getInfo function core/lib/Drupal/Core/Datetime/Element/Datelist.php Returns the element properties for this element.
Datelist::incrementRound function core/lib/Drupal/Core/Datetime/Element/Datelist.php Rounds minutes and seconds to nearest requested value.
Datelist::processDatelist function core/lib/Drupal/Core/Datetime/Element/Datelist.php Expands a date element into an array of individual elements.
Datelist::validateDatelist function core/lib/Drupal/Core/Datetime/Element/Datelist.php Validation callback for a datelist element.
Datelist::valueCallback function core/lib/Drupal/Core/Datetime/Element/Datelist.php Validates the date type to adjust 12 hour time and prevent invalid dates.
If the date is valid, the date is set in the form.
DatelistElementFormTest class core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Tests Datelist functionality.
DatelistElementFormTest.php file core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php
DatelistElementFormTest::$modules property core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Modules to install.
DatelistElementFormTest::buildForm function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Form constructor.
DatelistElementFormTest::datelistDateCallback function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php
DatelistElementFormTest::datelistDateCallbackTrusted function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php
DatelistElementFormTest::getFormId function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Returns a unique string identifying the form.
DatelistElementFormTest::setUp function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Sets up the test.
DatelistElementFormTest::submitForm function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Form submission handler.
DatelistElementFormTest::testDatelistElement function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Tests that trusted callbacks are executed.
DatelistElementFormTest::testDatelistElementUntrustedCallbacks function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Tests that exceptions are raised if untrusted callbacks are used.
DatelistElementFormTest::trustedCallbacks function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Lists the trusted callbacks provided by the implementing class.
DatelistElementFormTest::validateForm function core/tests/Drupal/KernelTests/Core/Datetime/DatelistElementFormTest.php Form validation handler.
DateRangeCustomFormatter class core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php Plugin implementation of the 'Custom' formatter for 'daterange' fields.
DateRangeCustomFormatter.php file core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php
DateRangeCustomFormatter::defaultSettings function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php Defines the default settings for this plugin.
DateRangeCustomFormatter::settingsForm function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php Returns a form to configure settings for the formatter.
DateRangeCustomFormatter::settingsSummary function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php Returns a short summary for the current formatter settings.
DateRangeCustomFormatter::viewElements function core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeCustomFormatter.php Builds a renderable array for a field value.
DateRangeDatelistWidget class core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php Plugin implementation of the 'daterange_datelist' widget.
DateRangeDatelistWidget.php file core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php
DateRangeDatelistWidget::defaultSettings function core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php Defines the default settings for this plugin.
DateRangeDatelistWidget::formElement function core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php Returns the form for a single field widget.
DateRangeDatelistWidget::settingsForm function core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php Returns a form to configure settings for the widget.
DateRangeDatelistWidget::settingsSummary function core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php Returns a short summary for the current widget settings.
DateRangeDefaultFormatter class core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeDefaultFormatter.php Plugin implementation of the 'Default' formatter for 'daterange' fields.
DateRangeDefaultFormatter.php file core/modules/datetime_range/src/Plugin/Field/FieldFormatter/DateRangeDefaultFormatter.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.