Skip to content

Date time unix field

ajitbohra edited this page Dec 1, 2014 · 5 revisions

A Unix Date & Time field.

JQuery UI datepicker is used when selecting dates.

Data is stored as a unix timestamp.

datetime_unix_date datetime_unix_time

Args

Required Args

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

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'   => 'example-field-datetime', 
	'name' => 'A unix date and time field', 
	'type' => 'datetime_unix', 
),