Documentation

Edit on GitHub
Documentation > Fields > Date

Date

Renders a date picker using jQuery UI. The value is stored in YYYY-MM-DD format.

Field::make("date", "crb_event_start_date", "Start")

Setup methods

set_datepicker_options($options)

Set an associative array with your preferred Datepicker options.

set_options($options)

Deprecated: Use set_datepicker_options() instead.

Edit on GitHub

Excited about Carbon Fields? Spread the word!