PHP code example of lstoyanoff / carbon-field-date-range

1. Go to this page and download the library: Download lstoyanoff/carbon-field-date-range library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lstoyanoff / carbon-field-date-range example snippets


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

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