Topic: strftime in active admin form

Hi all,
this is how in front-end current date gets saved in database automatically(without datepickers n stuff):

  <% for order in @orders %>
  <%= order.updated_at.strftime("%Y-%m-%d %I:%M") %>

That works, data in database: 2013-05-03 21:32:59.847009

But the problem is that for back-end I'm using Active Admin, and I'm making form, so orders can be edited.
But the thing is I don't really understand how to apply the same strftime function there, I thought it would be something like this:

      f.input :updated_at, :date.strftime("%Y-%m-%d %I:%M")

But it's not correct.
Does anyone know of a solution?

Last edited by dxshindeo (2013-05-03 19:13:06)