/**
  * Get the date control.
  * @param $auth
  * @param $args
  * @param $tabAlias
  * @param $options
  * @return string
  */
 protected static function get_control_date($auth, $args, $tabAlias, $options)
 {
     //Tabs
     if ($args['interface'] === 'tabs') {
         return mobile_entry_helper::date_now(array_merge(array('fieldname' => 'sample:date', 'default' => isset($args['defaults']['sample:date']) ? $args['defaults']['sample:date'] : ''), $options), true);
     }
     //One Page
     $id = 'date';
     $caption = 'Date';
     //generate a new page
     $caption = "<h1>" . $caption . "</h1>";
     $page = static::get_blank_page($id, $caption);
     $page[JQM_CONTENT][JQM_CONTENT][JQM_CONTENT][] = mobile_entry_helper::date_now($options, false);
     static::unshift_pages_array($page);
     $options = array();
     $options['class'] = '';
     $options['id'] = "date-button";
     $options['href'] = '#' . $id;
     $options['caption'] = $caption;
     $button = mobile_entry_helper::apply_template('jqmRightButton', $options);
     return $button;
 }