Skip to content

Instantly share code, notes, and snippets.

@sbruner
Last active January 17, 2016 04:27
Show Gist options
  • Save sbruner/82f9b6844342d5cc06e9 to your computer and use it in GitHub Desktop.
Save sbruner/82f9b6844342d5cc06e9 to your computer and use it in GitHub Desktop.
Piklist: field: datepicker
<?php
piklist('field', array(
'type' => 'datepicker',
'field' => 'my_date_field',
'label' => 'Date',
'value' => date('M d, Y', time() + 604800), // set default value
'options' => array(
'dateFormat' => 'M d, yy'
)
));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment