public function datetime($name, $value = null, $options = []) { if ($value instanceof DateTime) { $value = $value->format(DateTime::RFC3339); } return $this->input('datetime', $name, $value, $options); }
/** * Create a datetime input field. * * @param string $name * @param string $value * @param array $options * @return \Illuminate\Support\HtmlString * @static */ public static function datetime($name, $value = null, $options = array()) { return \Collective\Html\FormBuilder::datetime($name, $value, $options); }