Within a rails app I have a .jst.eco template which includes the line...
<span> <%= @event.get 'create_at' %> </span>
...which renders the date like so 2015-01-17 11:04:03.
However I only want to display 2015-01-17. Is there a neat formatting trick I can use within the <%= ... %>?