<%= simple_form_for(@event) do |f| %>
  <% if @event.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>

      <ul>
      <% @event.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field form-group">
    <%= f.input :date %>
    <em><%= I18n.l(@event.date) %></em><br/>
    <code><%= @event.date.to_s %></code>
  </div>
  <div class="field form-group">
    <%= f.input :datetime %>
    <em><%= I18n.l(@event.datetime) %></em><br/>
    <code><%= @event.datetime.to_s %></code>
  </div>
  <div class="field form-group">
    <%= f.input :time %>
    <em><%= I18n.l(@event.time, format: :only_time) %></em><br/>
    <code><%= @event.time.to_s %></code>
  </div>
  <div class="actions">
    <%= f.submit nil, class: 'btn btn-default' %>
  </div>
<% end %>

<%= simple_form_for(@event) do |f| %>
  <% if @event.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>

      <ul>
      <% @event.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field form-group">
    <%= f.input :date, as: :date_picker %>
    <em><%= I18n.l(@event.date) %></em><br/>
    <code><%= @event.date.to_s %></code>
  </div>
  <div class="field form-group">
    <%= f.input :datetime, as: :date_picker %>
    <em><%= I18n.l(@event.datetime) %></em><br/>
    <code><%= @event.datetime.to_s %></code>
  </div>
  <div class="field form-group">
    <%= f.input :time, as: :date_picker %>
    <em><%= I18n.l(@event.time, format: :only_time) %></em><br/>
    <code><%= @event.time.to_s %></code>
  </div>
  <div class="actions">
    <%= f.submit nil, class: 'btn btn-default' %>
  </div>
<% end %>

Use as: :date_picker in form
Use as: :date_picker in form
