lstoyanoff/carbon-field-date-range

Carbon Fields extension, that adds a Date Range field type.

1.0 2021-02-27 22:54 UTC

This package is auto-updated.

Last update: 2024-04-28 05:48:38 UTC


README

Provides the ability to select a date range and saves it in the database in custom format.

Usage

Field::make( 'date_range', 'date', __( 'Select Date Range', 'crb' ) ),

Value Format

array(
	'value' => '2021-02-28 to 2021-03-03',
	'from'  => '2021-02-28',
	'to'    => '2021-03-03',
)