Sha256: 35d71ecb021c21dcd36573d4edfc107cd83d8c0a08ad63e37892deb6a3e365c8

Contents?: true

Size: 302 Bytes

Versions: 4

Compression:

Stored size: 302 Bytes

Contents

<%#
# DatePicker Show Partial

This partial renders a date to be displayed
on a resource's show page.

By default, the attribute is rendered as string
with the %b %d, %Y format, e.g. `Oct 28, 2016`

## Local variables:

- `field`:
  An instance of DateTime.
%>

<%= field.data.strftime('%b %d, %Y') %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
administrate-field-date_picker-0.0.5 app/views/fields/date_picker/_show.html.erb
administrate-field-date_picker-0.0.4 app/views/fields/date_picker/_show.html.erb
administrate-field-date_picker-0.0.3 app/views/fields/date_picker/_show.html.erb
administrate-field-date_picker-0.0.2 app/views/fields/date_picker/_show.html.erb