In my Rails view, I have the below code that displays a datetime.
<%= link_to timeslot.opening, [@place, timeslot] %>
The result of this
Use ruby's strftime() on dates/datetimes:
strftime()
<%= link_to timeslot.opening.strftime("%Y %m %d"), [@place, timeslot] %>
Have a look at the documentation to find out how the formatting works.