Rails 3 Finding day of week

ruby-on-rails-3

Solution

Can't you use time.wday, 0 = sunday and so on

Problem

I'm trying to make my own calendar because i cant seem to get any help with event calendar so what im trying to do is Display the day of the week ie.. January 1 2011 is a Saturday is there an easy command to get that day or do i need something else

Original source