How to change created_at format
You can read more about strftime
here
t.created_at.strftime("%Y-%m-%d")
And it can be done even easier way:
t.created_at.to_date
You can read more about strftime
here
t.created_at.strftime("%Y-%m-%d")
And it can be done even easier way:
t.created_at.to_date