本书未发布
字段:日期 Date
文档尚未来得及翻译,欢迎以改进的方式提交译文。
Field Type - Date
Usage
The date
field type should be a DATE or DATETIME type in your database.
'date' => array(
'type' => 'date',
'title' => 'Date',
'date_format' => 'yy-mm-dd', //optional, will default to this value
)
In the edit form, an admin user will be presented with a jQuery UI Datepicker.
The date_format
option lets you define how the date is displayed. This uses the formatting options from jQuery Datepicker formatDate.
Filter
The date
field filter comes with a start and end date. This allows you to narrow down the result set to a range, set only a minimum date, or set only a maximum date.
推荐文章: