Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/lang/en/fieldtypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
'date.config.number_of_months' => 'Control how many months are shown at one time.',
'date.config.time_enabled' => 'Enable the timepicker.',
'date.config.time_seconds_enabled' => 'Show seconds in the timepicker.',
'date.config.default' => 'You may specify a date using `YYYY-MM-DD`, or `now`.',
'date.title' => 'Date',
'dictionary.config.dictionary' => 'The dictionary you wish to pull options from.',
'dictionary.file.config.filename' => 'The filename containing your options, relative to the `resources/dictionaries` directory.',
Expand Down
5 changes: 5 additions & 0 deletions src/Fieldtypes/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ protected function configFieldItems(): array
'instructions' => __('statamic::fieldtypes.date.config.format'),
'type' => 'text',
],
'default' => [
'display' => __('Default Value'),
'instructions' => __('statamic::fieldtypes.date.config.default'),
'type' => 'text',
],
],
],
];
Expand Down