------extPart_000_000A_01C69472.F4FAD660
Content-Type: text/plain;
	charsetso-8859-1"
Content-Transfer-Encoding: quoted-printable

http://www.ruby-doc.org/stdlib/libdoc/date/rdoc/classes/Date.html#M000370Looking at the Date class there are two constants, a hash DAYS and an array ABBR_DAYNAMES. 

DAYS = { 'sunday' => 0, 'monday' => 1, 'tuesday' => 2, 'wednesday'=> 3, 'thursday' => 4, 'friday' => 5, 'saturday' => 6 }
ABBR_DAYNAMES = %w(Sun Mon Tue Wed Thu Fri Sat)

I can get the integer for the day 'number' (0 to 6) from a date using the wday method, ie. Date.today.wday
But how do I use the array or hash from Date.rb, it does not appear to be initialized at the time of use.

Ultimately what I wish to create is a select box (monday-sunday) with today's day pre-selected.

I've looked for a Rails helper to this but there does not appear to be one.

Many thanks. AFM.



------extPart_000_000A_01C69472.F4FAD660--