1 date.module date_example_date()

Creates an example date object.

This ensures a clear difference between month and day, and 12 and 24 hours.

File

core/modules/date/date.module, line 935
Defines date/time field types.

Code

function date_example_date() {
  // use a fixed unambiguous date and time.
  return new BackdropDateTime('2099-12-31 23:59:00');
}