Skip to content
ajitbohra edited this page Dec 1, 2014 · 9 revisions

A Date field.

JQuery UI datepicker is used when selecting dates.

Data is stored as a string in the format MM/DD/YYYY. For dates stored as a unix timestamp, use the field date_unix

date

Args

Required Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'date' (string) (required)

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'   => 'example-field-date', 
	'name' => 'A date field', 
	'type' => 'date', 
),