Skip to content
mattheu edited this page Apr 28, 2013 · 6 revisions

A Unix Date field.

JQuery UI datepicker is used when selecting dates.

Data is stored as a string as a unix timestamp.

Date Field

Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'date_unix' (string) (required)
  • desc (string) Field description. Displayed below label.
  • repeatable (bool)
  • cols (int) [1-12]

Example Usage

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