Active use in Rails 4 - should also in most other versions ...
Both of these parameters will give you the day string (for example, "Saturday") on the specified date:
Certain date:
Date.new(2011, 1, 1).strftime('%A')
Today:
Date.today.strftime('%A')
webaholik Feb 07 '18 at 20:09 2018-02-07 20:09
source share