Date/time
See Text field for complete documentation.
$box = register_cuztom_meta_box( $id, $post_type, array(
'fields' => array(
array(
'id' => '_data_datetime',
'type' => 'datetime',
'label' => 'Field Label',
'args' => array(
'date_format' => 'mm/dd/yy'
)
),
...
)
) );
Updated almost 8 years ago