Formatting a unix timestamp...

item.create_at.to_formatted_s(:db)

Same can be done with dates.

Best regards

Peter De Berdt