Converting date and time formats

Hi,

I am trying to convert the update_at column in my database to this
format “Fri, 10 Aug 2007 12:17:00 GMT”. How do I do this?

Kind regards,
Dave.

Hi,

[email protected] wrote:

I am trying to convert the update_at column in my database to this
format “Fri, 10 Aug 2007 12:17:00 GMT”. How do I do this?

t = Time.new
=> Mon Aug 13 13:56:42 CEST 2007

t.strftime("%a, %d %b %Y %H:%M:%S %Z")
=> “Mon, 13 Aug 2007 13:56:42 CEST”

Lutz